/*
 * Truvery, one stylesheet.
 *
 * Written for the device the spec targets: a ₦40,000 to ₦80,000 Android phone with 2 to 3GB of
 * memory, on data bought that morning. So: no framework, no downloaded fonts, no decorative
 * images, and a file small enough that it is never the reason a page is slow.
 *
 * The palette is deep green for trust and money, warm sand for paper, and one amber accent used
 * only where attention is genuinely required. Contrast is checked against WCAG AA.
 */

:root {
    --ink: #1C1C1A;
    --ink-soft: #4b4b46;
    --green: #1f8a4c;
    --green-dark: #0e7a3a;
    --green-tint: #eaf7ee;
    --sand: #f6f5ec;
    --paper: #FFFFFF;
    --line: #e4e2d4;
    --amber: #C9860F;
    --amber-tint: #fbf1da;
    --danger: #E22929;
    --danger-dark: #AE1F29;
    --danger-tint: #fbeaea;

    --radius: 12px;
    --gap: 16px;
    --shadow: 0 4px 12px rgba(28, 28, 26, .08), 0 2px 4px rgba(28, 28, 26, .05);
    --font: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --note-border: #b8dcc8;
    --warn-border: #f0d9a0;
    --danger-border: #f0c3c3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--sand);
    /* Room for the phone's own chrome on a notched screen. */
    padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }

.skip {
    position: absolute; left: -9999px;
    background: var(--paper); padding: 12px 16px; border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* ---------------------------------------------------------------- chrome */

.bar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
    padding: 12px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 5;
}
.brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1.05rem; color: var(--green-dark); text-decoration: none;
}
.mark { width: 26px; height: 26px; color: var(--green); }
.bar nav { display: flex; gap: 14px; font-size: .95rem; }
.bar nav a { text-decoration: none; color: var(--ink-soft); }
.bar nav a:hover, .bar nav a:focus { color: var(--green-dark); text-decoration: underline; }

main { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }

.foot {
    max-width: 720px; margin: 0 auto; padding: 0 16px 32px;
    color: var(--ink-soft); font-size: .85rem;
}

/* ---------------------------------------------------------------- blocks */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: var(--gap);
    box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }

.lede { font-size: 1.05rem; color: var(--ink-soft); }

.note, .warn, .bad, .good {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: var(--gap);
    border: 1px solid transparent;
}
.note { background: var(--green-tint); border-color: var(--note-border); }
.warn { background: var(--amber-tint); border-color: var(--warn-border); color: #8A5A06; }
.bad  { background: var(--danger-tint); border-color: var(--danger-border); color: var(--danger); }
.good { background: var(--green-tint); border-color: var(--note-border); color: var(--green-dark); }
.note > :last-child, .warn > :last-child, .bad > :last-child, .good > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- forms */

form { margin: 0; }
.field { margin-bottom: var(--gap); }
label { display: block; font-weight: 600; margin-bottom: 5px; }
.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; margin-top: 2px; }

input[type="text"], input[type="tel"], input[type="number"], input[type="email"], select, textarea {
    width: 100%;
    /* 16px keeps iOS from zooming the page when a field is focused. */
    font: inherit; font-size: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(31, 138, 76, .35);
    outline-offset: 1px;
    border-color: var(--green);
}
textarea { min-height: 84px; resize: vertical; }

.code-input {
    font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums;
}

button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    /* 48px high: a thumb target that works on a cheap screen in a hurry. */
    min-height: 48px;
    padding: 12px 20px;
    font: inherit; font-weight: 600; font-size: 1rem;
    border: 1px solid var(--green-dark);
    border-radius: var(--radius);
    background: var(--green); color: #fff;
    text-decoration: none; cursor: pointer;
}
button:hover, .btn:hover { background: var(--green-dark); }
button:focus-visible, .btn:focus-visible {
    outline: 3px solid rgba(31, 138, 76, .45); outline-offset: 2px;
}
button:disabled { opacity: .55; cursor: not-allowed; }
button:disabled:focus-visible { outline: none; }
.btn-quiet {
    background: var(--paper); color: var(--green-dark); border-color: var(--line);
}
.btn-quiet:hover { background: var(--green-tint); }
.btn-wide { width: 100%; }
.btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; padding: 6px 14px;
    font: inherit; font-weight: 600; font-size: .88rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: var(--green-dark);
    text-decoration: none; cursor: pointer;
}
.btn-sm:hover { background: var(--green-tint); }
.btn-nav {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; font-size: 0.85rem; font-weight: 600;
    background: var(--green); color: #fff;
    border-radius: var(--radius); text-decoration: none;
    min-height: 44px;
}
.btn-nav:hover { background: var(--green-dark); }

fieldset { border: 0; padding: 0; margin: 0 0 var(--gap); }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }

.choices { display: grid; gap: 8px; }
.choice {
    display: flex; gap: 10px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; background: var(--paper); cursor: pointer;
}
.choice input { margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.choice .hint { margin-top: 1px; }

/* ---------------------------------------------------------------- data */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.rows a { text-decoration: none; font-weight: 600; }

.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { font-size: 1.25rem; font-weight: 700; }

.tag {
    display: inline-block; padding: 3px 9px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    background: var(--green-tint); color: var(--green-dark); white-space: nowrap;
}
.tag-wait { background: var(--amber-tint); color: #8A5A06; }
.tag-done { background: var(--green-tint); color: var(--green-dark); }
.tag-stop { background: var(--danger-tint); color: var(--danger); }

.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1; font-size: .9rem; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 20px 26px; }
.steps li::before {
    content: ""; position: absolute; left: 4px; top: 6px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line);
}
.steps li::after {
    content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li.done::before { background: var(--green); }
.steps .when { color: var(--ink-soft); font-size: .85rem; }

/* ---------------------------------------------------------------- filter pills */

.filter-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 8px;
}
.filter-pill {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
    border: 1px solid var(--line);
    background: var(--paper); color: var(--ink-soft);
    text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.filter-pill:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-dark); }
.filter-pill.active { background: var(--green); border-color: var(--green-dark); color: #fff; }

input[type="search"] {
    width: 100%;
    font: inherit; font-size: 16px;
    padding: 12px 12px 12px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234b4b46' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 10-1.397 1.398h-.001l3.85 3.85a1 1 0 001.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 110-10 5 5 0 010 10z'/%3E%3C/svg%3E") 12px center no-repeat;
    color: var(--ink);
}
input[type="search"]:focus {
    outline: 3px solid rgba(31, 138, 76, .35);
    outline-offset: 1px;
    border-color: var(--green);
}

/* ---------------------------------------------------------------- transitions */

.card { transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--green); }

a { transition: color .12s; }
button, .btn, .btn-quiet, .btn-nav { transition: background .15s, border-color .15s; }

.rows li { transition: background .1s; }
.rows li:hover { background: var(--green-tint); }

.tag, .tag-wait, .tag-done, .tag-stop { transition: transform .1s; }

/* ---------------------------------------------------------------- empty states */

.empty-state {
    text-align: center; padding: 32px 16px;
    color: var(--ink-soft);
}
.empty-state p { margin: 8px 0; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- truvery.ng
 *
 * The marketing website. Designed to look like a platform that handles money:
 * professional, confident, trustworthy. Full-bleed section bands give visual
 * rhythm; a dark gradient hero makes the first impression count.
 *
 * Same tokens as the app — one stylesheet, one source of truth.
 */

.site main { max-width: 100%; padding: 0; }

.sw { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.site .bar {
    padding: 14px 24px; border-bottom: 0;
    box-shadow: 0 1px 4px rgba(28,28,26,.06);
}
.site .bar nav { gap: 4px; flex-wrap: wrap; row-gap: 4px; }
.site .bar nav a {
    padding: 7px 14px; border-radius: 8px; font-weight: 500; font-size: .9rem;
}
.site .bar nav a:hover, .site .bar nav a:focus {
    background: var(--green-tint); color: var(--green-dark); text-decoration: none;
}

/* ---- Hero (dark gradient) ---- */
.sh {
    background: linear-gradient(145deg, #062a15 0%, #0b6330 45%, #148a46 100%);
    color: #fff; padding: 68px 24px 76px;
}
.sh .sw { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.sh-text { flex: 1 1 380px; }
.sh h1 {
    font-size: 3rem; font-weight: 800; line-height: 1.1;
    margin-bottom: .45em; color: #fff;
}
.sh-sub {
    font-size: 1.12rem; line-height: 1.65; opacity: .88;
    margin-bottom: 1.6em; max-width: 520px;
}
.sh-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-visual { flex: 0 1 300px; display: flex; justify-content: center; }

/* Hero CTA buttons */
.btn-h {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 14px 30px;
    font: inherit; font-size: 1.05rem; font-weight: 700;
    border-radius: 10px; text-decoration: none; cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn-h:active { transform: scale(.97); }
.btn-hp { background: #fff; color: #0b6330; border-color: #fff; }
.btn-hp:hover { background: #eaf7ee; border-color: #eaf7ee; }
.btn-ho { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ho:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Hero (light variant for sub-pages) */
.sh-lt {
    background: linear-gradient(145deg, #e5f5eb 0%, #d2eedb 100%);
    color: var(--ink); padding: 44px 24px 48px;
    border-bottom: 2px solid #b8dcc8;
}
.sh-lt h1 { font-size: 2.3rem; color: var(--green-dark); }
.sh-lt .sh-sub { color: var(--ink-soft); opacity: 1; }

/* ---- Full-width section bands ---- */
.sb { padding: 56px 24px; }
.sb-tint { background: #eaf7ee; }
.sb-sand { background: var(--sand); }
.sb-white { background: var(--paper); }
.sb h2 { font-size: 1.65rem; font-weight: 700; margin-bottom: .7em; }
.sb-label {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--green); margin-bottom: .6em;
}

/* ---- Numbered steps ---- */
.nsteps { counter-reset: ns; }
.nstep {
    display: grid; grid-template-columns: 56px 1fr; gap: 20px;
    padding: 24px 0; border-bottom: 1px solid var(--line);
    counter-increment: ns;
}
.nstep:last-child { border-bottom: 0; }
.nstep-n {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.nstep strong { display: block; font-size: 1.05rem; margin-bottom: .25em; }
.nstep p { margin: 0; color: var(--ink-soft); line-height: 1.55; }

/* ---- Feature grids ---- */
.fgrid { display: grid; gap: 20px; }
@media (min-width: 640px) {
    .fg2 { grid-template-columns: repeat(2, 1fr); }
    .fg3 { grid-template-columns: repeat(3, 1fr); }
    .fg4 { grid-template-columns: repeat(4, 1fr); }
}

.fcard {
    background: var(--paper); border-radius: 16px; padding: 28px 24px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(28,28,26,.04), 0 1px 3px rgba(28,28,26,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.fcard:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(28,28,26,.09); border-color: var(--green); }
.fcard h3 { font-size: 1.1rem; margin-bottom: .4em; }
.fcard p:last-child { margin-bottom: 0; }

/* Feature icon box */
.fi {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.fi-green { background: var(--green-tint); }
.fi-amber { background: var(--amber-tint); }
.fi-danger { background: var(--danger-tint); }
.fi svg { width: 26px; height: 26px; }

/* ---- Info card (accent left border) ---- */
.icard {
    background: var(--paper); border-radius: 16px; padding: 28px 24px;
    border: 1px solid var(--line); border-left: 4px solid var(--green);
    margin-bottom: 24px; box-shadow: 0 2px 6px rgba(28,28,26,.04);
}
.icard-amber { border-left-color: var(--amber); }
.icard h2 { font-size: 1.3rem; margin-bottom: .5em; }
.icard > :last-child { margin-bottom: 0; }

/* ---- Trust strip (icon grid) ---- */
.tstrip { display: grid; gap: 20px; }
@media (min-width: 640px) { .tstrip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px) { .tstrip { grid-template-columns: repeat(4, 1fr); } }

.titem {
    text-align: center; padding: 28px 16px;
    background: var(--paper); border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(28,28,26,.04);
}
.titem-i {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--green-tint);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.titem-i svg { width: 26px; height: 26px; }
.titem p { margin: 0; font-weight: 600; font-size: .92rem; line-height: 1.45; }

/* ---- Commitment rows ---- */
.crows { list-style: none; margin: 0; padding: 0; }
.crow {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 15px 0; border-bottom: 1px solid var(--line);
}
.crow:last-child { border-bottom: 0; }
.crow-val { font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(145deg, #062a15 0%, #0b6330 45%, #148a46 100%);
    color: #fff; text-align: center; padding: 56px 24px;
}
.cta-band h2 {
    font-size: 1.9rem; font-weight: 800; margin-bottom: .4em; color: #fff;
}
.cta-band p { opacity: .85; max-width: 520px; margin: 0 auto 1.5em; font-size: 1.05rem; }

/* ---- FAQ card ---- */
.faq-card {
    background: var(--paper); border-radius: 16px; padding: 24px 28px;
    border: 1px solid var(--line); margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(28,28,26,.04);
    transition: border-color .2s;
}
.faq-card:hover { border-color: var(--green); }
.faq-card h2 { font-size: 1.12rem; color: var(--green-dark); margin-bottom: .4em; }
.faq-card p:last-child { margin-bottom: 0; }

/* ---- Rate table (preserved for pricing) ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rates {
    border-collapse: collapse; width: 100%; font-size: .92rem;
}
table.rates caption { caption-side: bottom; text-align: left; padding-top: 8px; }
table.rates th, table.rates td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
table.rates td.money, table.rates th.money { text-align: right; white-space: nowrap; }
table.rates thead th {
    color: var(--ink-soft); font-size: .78rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 700;
}
table.rates tbody th { font-weight: 600; }
table.rates tbody tr:hover { background: var(--green-tint); }

/* ---- Ticks list (used in terms) ---- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 .7em 26px; }
.ticks li::before {
    content: ""; position: absolute; left: 4px; top: 7px;
    width: 7px; height: 12px; border: solid var(--green);
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---- Dark structured footer ---- */
.sf {
    background: #111110; color: rgba(255,255,255,.6);
    padding: 52px 24px 28px;
}
.sf a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s; }
.sf a:hover { color: #fff; }
.sf-grid {
    display: grid; gap: 32px; max-width: 960px; margin: 0 auto;
}
@media (min-width: 640px) { .sf-grid { grid-template-columns: 2fr 1fr 1fr; } }
.sf-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; display: block; }
.sf-about { font-size: .88rem; line-height: 1.55; margin-bottom: 16px; }
.sf-links { list-style: none; padding: 0; margin: 0; }
.sf-links li { margin-bottom: 10px; }
.sf-links a { font-size: .88rem; }
.sf-label {
    color: rgba(255,255,255,.35); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .1em; margin-bottom: 14px; font-weight: 700;
}
.sf-bottom {
    max-width: 960px; margin: 28px auto 0; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
}

/* ---- Install hint ---- */
.install-hint {
    margin-top: 20px; padding: 14px 16px;
    background: var(--green-tint); border: 1px solid var(--note-border);
    border-radius: var(--radius);
    font-size: .88rem; color: var(--ink-soft); line-height: 1.55;
}

/* ---- Inline hero SVG (abstract, minimal) ---- */
.sh-illo { max-width: 280px; width: 100%; height: auto; }

/* ---- Sub-page prose section ---- */
.sprose { max-width: 720px; }
.sprose h2 { font-size: 1.4rem; margin-top: 2em; margin-bottom: .5em; color: var(--ink); }
.sprose h2:first-child { margin-top: 0; }
.sprose p { line-height: 1.65; }

/* ---- Responsive: site ---- */
@media (max-width: 480px) {
    .sh h1 { font-size: 1.9rem; }
    .sh { padding: 44px 16px 52px; }
    .sh-lt h1 { font-size: 1.6rem; }
    .sh-lt { padding: 32px 16px 36px; }
    .sb { padding: 36px 16px; }
    .sb h2 { font-size: 1.3rem; }
    .sw { padding: 0 16px; }
    .nstep { grid-template-columns: 44px 1fr; gap: 14px; }
    .nstep-n { width: 40px; height: 40px; font-size: 1rem; }
    .fcard { padding: 20px 18px; }
    .icard { padding: 20px 18px; }
    .faq-card { padding: 18px 20px; }
    .cta-band h2 { font-size: 1.45rem; }
    .cta-band { padding: 40px 16px; }
    .sf { padding: 36px 16px 24px; }
    .sh-ctas { flex-direction: column; }
    .sh-ctas .btn-h { width: 100%; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .sh h1 { font-size: 2.4rem; }
    .sh { padding: 56px 20px 64px; }
    .sh-lt h1 { font-size: 1.9rem; }
}
@media (min-width: 769px) {
    .sh h1 { font-size: 3.2rem; }
}

/* ---------------------------------------------------------------- the rider app
 *
 * Bigger targets than anywhere else in the platform. The person using this is outdoors, moving,
 * often with one hand on a bike, and sometimes in the rain. Nothing here is smaller than a thumb.
 */

.rider main { padding-bottom: 96px; }   /* room for the panic bar */
.rider .bar {
    background: linear-gradient(135deg, #0e7a3a 0%, #148a46 100%);
    border-bottom: 0; box-shadow: 0 2px 8px rgba(14, 122, 58, .15);
}
.rider .brand { color: #fff; }
.rider .mark { color: rgba(255,255,255,.9); }
.rider .bar nav a { color: rgba(255,255,255,.8); font-weight: 500; }
.rider .bar nav a:hover, .rider .bar nav a:focus { color: #fff; background: rgba(255,255,255,.1); border-radius: 8px; text-decoration: none; }
.rider .bar .btn-link { color: rgba(255,255,255,.7); }
.rider .bar .btn-link:hover { color: #fff; text-decoration: underline; }
.rider .btn, .rider button { min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
.rider .code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.rider .card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(28,28,26,.04), 0 1px 3px rgba(28,28,26,.05);
}

.job-current {
    border-left: 4px solid var(--green);
    box-shadow: 0 2px 8px rgba(31, 138, 76, .1);
    border-radius: 16px;
}
.job-offer {
    border-left: 4px solid var(--amber);
    border-radius: 16px;
    transition: box-shadow .15s, transform .1s;
}
.job-offer:hover { box-shadow: 0 4px 16px rgba(28,28,26,.08); }
.job-offer:active { transform: scale(.99); }
.job-offer h3 { margin-bottom: .2em; }
.job-offer .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.job-offer .actions form { margin: 0; }
.job-offer .lede strong { color: var(--green-dark); font-size: 1.1em; }

.rider .btn-nav {
    min-height: 52px; padding: 12px 18px; font-size: 1rem; border-radius: 10px;
}

.rider .note, .rider .good, .rider .warn, .rider .bad { border-radius: 14px; }
.rider .foot { color: rgba(0,0,0,.35); text-align: center; }

.address { font-size: 1.15rem; font-weight: 700; margin-bottom: .3em; color: var(--ink); }

.rider .money { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); }

/* Always reachable, on every screen, without scrolling to find it. */
.panic-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
}
.panic-bar form { margin: 0; }
.btn-panic {
    display: block; width: 100%; min-height: 52px;
    background: var(--danger); color: #fff; border: 0; border-radius: var(--radius);
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.btn-panic:hover, .btn-panic:focus { background: var(--danger-dark); }

input[type="file"] {
    width: 100%; padding: 12px; font: inherit;
    border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper);
}

/* The photographs a dispute is decided on. Shown small; the browser can enlarge them. */
.proof { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.proof figure { margin: 0; }
.proof img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sand); }
.proof figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* Earned versus still to come. A tick must never appear next to something a rider has not got. */
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { position: relative; padding: 0 0 .7em 26px; }
.milestones li::before { position: absolute; left: 2px; top: 0; font-weight: 700; }
.milestones li.earned::before { content: "\2713"; color: var(--green); }
.milestones li.pending::before { content: "\25CB"; color: var(--ink-soft); }

/* ---------------------------------------------------------------- tracking page polish */

.steps li.done { font-weight: 600; }
.steps li.done .when { font-weight: 400; }
.steps li:not(.done) { color: var(--ink-soft); }

.proof img { transition: transform .15s; }
.proof img:active { transform: scale(1.02); }
.milestones li.pending { color: var(--ink-soft); }

/* A form in the navigation bar, for actions that must not be a link somebody else can trigger. */
.nav-form { display: inline; margin: 0; }
.btn-link {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: var(--ink-soft); cursor: pointer;
}
.btn-link:hover, .btn-link:focus { color: var(--green-dark); text-decoration: underline; }
.rider .bar .btn-link { min-height: 0; font-size: .95rem; }

/* Right-aligned in a two-column row: the amount and its status, against the item and reference.
 * A class rather than a style attribute, because Content-Security-Policy is style-src 'self' and
 * an inline one is blocked with no visible error — the page renders and quietly ignores it. */
.right { text-align: right; }

/* ---------------------------------------------------------------- spacing utilities
 *
 * Because Content-Security-Policy is style-src 'self', inline style attributes are blocked
 * with no visible error. These classes replace the one-off margins that would otherwise need
 * an inline style.
 */

.mt { margin-top: var(--gap); }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: var(--gap); }
.mt-l { margin-top: 24px; }
.mb { margin-bottom: var(--gap); }
.mb-s { margin-bottom: 8px; }

/* ---------------------------------------------------------------- the merchant app */

.merchant .bar {
    background: linear-gradient(135deg, #0e7a3a 0%, #148a46 100%);
    border-bottom: 0; box-shadow: 0 2px 8px rgba(14, 122, 58, .15);
}
.merchant .brand { color: #fff; }
.merchant .mark { color: rgba(255,255,255,.9); }
.merchant .bar nav a { color: rgba(255,255,255,.8); font-weight: 500; }
.merchant .bar nav a:hover, .merchant .bar nav a:focus { color: #fff; background: rgba(255,255,255,.1); border-radius: 8px; text-decoration: none; }
.merchant .bar .btn-link { color: rgba(255,255,255,.7); }
.merchant .bar .btn-link:hover { color: #fff; text-decoration: underline; }
.merchant .card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(28,28,26,.04), 0 1px 3px rgba(28,28,26,.05);
}
.merchant .btn, .merchant button:not(.btn-link):not(.chat-toggle):not(.star-btn):not(.tip-chip) {
    border-radius: 10px;
}
.merchant .note, .merchant .good, .merchant .warn, .merchant .bad { border-radius: 14px; }
.merchant .foot { color: rgba(0,0,0,.35); text-align: center; }
.staff-banner { background: #fef3cd; color: #856404; text-align: center; padding: 6px 16px; font-size: .85rem; font-weight: 500; }

.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 480px) { .card-row { grid-template-columns: 1fr; } }
@media (min-width: 481px) and (max-width: 768px) { .card-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card { text-align: center; padding: 16px 12px; }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat-label { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }

.card-link { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--green-dark); box-shadow: 0 2px 12px rgba(14,122,58,.12); }
.card-link .hint { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; }
.danger-heading { color: #c0392b; }
.empty-icon { font-size: 2.4rem; display: block; text-align: center; opacity: .5; }

/* ---------------------------------------------------------------- bar chart (insights) */

.bar-chart {
    display: flex; gap: 3px; align-items: flex-end; height: 120px;
    padding: 0 0 24px; overflow-x: auto;
}
.bar-group {
    flex: 1 1 0; min-width: 18px; display: flex; flex-direction: column;
    align-items: center; gap: 4px; position: relative;
}
.bar-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; flex: 1; justify-content: flex-end; }
.bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; transition: height .2s; }
.bar-orders { background: var(--green-tint); border: 1px solid var(--green); }
.bar-delivered { background: var(--green); }
.bar-label {
    position: absolute; bottom: -20px; font-size: .68rem; color: var(--ink-soft);
    white-space: nowrap; transform: rotate(-45deg); transform-origin: top center;
}
.chart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.legend-orders { background: var(--green-tint); border: 1px solid var(--green); }
.legend-delivered { background: var(--green); }

/* ---------------------------------------------------------------- merchant tables and tokens */

table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tbl th, table.tbl td {
    text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.tbl th { font-weight: 600; color: var(--ink-soft); font-size: .82rem; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl td.center, table.tbl th.center { text-align: center; }

.key-display {
    display: block; padding: 10px 12px; margin: 8px 0;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem;
    background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
    word-break: break-all; white-space: pre-wrap;
}

.check-row { display: flex; align-items: center; gap: 8px; }
.check-row label { font-weight: 400; margin-bottom: 0; }
.center { text-align: center; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 480px) {
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.05rem; }
    .hero h1 { font-size: 1.5rem; }
    main { padding: 16px 12px 48px; }
    .bar { padding: 10px 12px; }
    .bar nav { gap: 8px; font-size: .82rem; flex-wrap: wrap; }
    .card { padding: 14px; }
    .panel { padding: 14px; }
    .site main { max-width: 100%; }
    .proof { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
    .actions { flex-direction: column; }
    .actions .btn, .actions .btn-nav { width: 100%; }
    .copy-row { flex-direction: column; }
    .copy-row input { font-size: .85rem; }
    .figures { grid-template-columns: repeat(2, 1fr); }
    table.tbl th, table.tbl td { padding: 6px 8px; font-size: .85rem; }
    table.rates th, table.rates td { padding: 6px 8px; font-size: .85rem; }
    .rows li { flex-wrap: wrap; gap: 4px; }
    .lede { font-size: .95rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    main { padding: 20px 14px 48px; }
    .proof { grid-template-columns: repeat(2, 1fr); }
    .bar nav { flex-wrap: wrap; }
}

@media (min-width: 769px) {
    main { max-width: 780px; }
    .card { padding: 22px; }
    .panel { padding: 22px; }
}

/* ---------------------------------------------------------------- rating and tipping UI */

.stars { display: flex; gap: 4px; }
.star-btn {
    background: none; border: 0; padding: 6px; cursor: pointer;
    font-size: 1.6rem; color: var(--line); min-height: 44px; min-width: 44px; line-height: 1;
    transition: color .15s;
}
.star-btn:hover, .star-btn.on { color: var(--amber); }
.star-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.tip-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tip-chip {
    display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--paper); cursor: pointer;
    font: inherit; font-size: .95rem; min-height: 44px;
    transition: border-color .15s, background .15s;
}
.tip-chip:hover, .tip-chip.on { border-color: var(--green); background: var(--green-tint); }
.tip-chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------------------------------------------------------------- send form two-col */

@media (min-width: 620px) {
    .send-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
}

/* ---------------------------------------------------------------- in-app chat */

.chat-card { position: relative; }
.chat-toggle {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 8px 0; margin: 0;
    font: inherit; font-weight: 600; color: var(--green-dark); cursor: pointer;
    min-height: 44px; transition: color .15s;
}
.chat-toggle:hover { text-decoration: underline; }
.chat-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.chat-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: #fff;
    font-size: .72rem; font-weight: 700; line-height: 1;
}
.chat-messages {
    list-style: none; margin: 0 0 12px; padding: 0;
    max-height: 320px; overflow-y: auto;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--sand);
}
.chat-messages li {
    padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.chat-messages li:last-child { border-bottom: 0; }
.chat-messages .chat-sender {
    font-weight: 600; font-size: .82rem; color: var(--ink-soft);
}
.chat-messages .chat-sender.me { color: var(--green-dark); }
.chat-messages .chat-body { margin: 2px 0 0; word-break: break-word; }
.chat-messages .chat-time {
    font-size: .75rem; color: var(--ink-soft); margin-top: 2px;
}
.chat-messages .chat-system {
    font-size: .85rem; color: var(--ink-soft); text-align: center;
    padding: 6px 12px;
}
.chat-compose {
    display: flex; gap: 8px; align-items: stretch;
}
.chat-compose input {
    flex: 1; min-width: 0; padding: 10px 12px; font: inherit;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: var(--ink);
}
.chat-compose button {
    min-height: 44px; padding: 10px 16px;
}
.chat-empty {
    text-align: center; padding: 24px 12px; color: var(--ink-soft);
    font-size: .9rem;
}

/* ---------------------------------------------------------------- notification badge */

.notify-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: #fff;
    font-size: .72rem; font-weight: 700; line-height: 1;
    vertical-align: middle; margin-left: 4px;
}

/* ---------------------------------------------------------------- notification inbox */

.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li {
    display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.inbox-list li:last-child { border-bottom: 0; }
.inbox-list a { text-decoration: none; color: inherit; display: block; }
.inbox-list a:hover { background: var(--green-tint); margin: -12px -14px; padding: 12px 14px; border-radius: var(--radius); }
.inbox-list a:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: var(--radius); }
.inbox-list .inbox-title { font-weight: 600; }
.inbox-list .inbox-unread .inbox-title { color: var(--green-dark); }
.inbox-list .inbox-body { font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
.inbox-list .inbox-time { font-size: .78rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- push opt-in banner */

.push-banner {
    background: var(--green-tint); border: 1px solid var(--note-border);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: var(--gap);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.push-banner p { margin: 0; flex: 1 1 200px; }
.push-banner button { min-height: 44px; padding: 10px 16px; }

/* ---------------------------------------------------------------- VoIP call button */

.call-btn {
    position: fixed; bottom: 90px; right: 16px; z-index: 900;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--green-dark); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.18); gap: 0;
    transition: background .15s, transform .15s;
}
.call-btn:hover { background: var(--green); }
.call-btn:focus-visible { outline: 3px solid rgba(31, 138, 76, .45); outline-offset: 3px; }
.call-btn:active { transform: scale(.93); }
.call-btn .call-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap;
}

.call-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.call-card {
    background: var(--paper); border-radius: 16px; padding: 32px 24px;
    text-align: center; max-width: 320px; width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.call-status {
    font-size: 1.1rem; font-weight: 600; color: var(--ink);
    margin-bottom: 8px;
}
.call-timer {
    font-size: 2rem; font-weight: 700; color: var(--green-dark);
    font-variant-numeric: tabular-nums; margin-bottom: 16px;
}
.call-actions { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.call-hangup {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: var(--danger); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.call-hangup:hover { background: var(--danger-dark); }
.call-hangup:focus-visible { outline: 3px solid rgba(164, 35, 31, .45); outline-offset: 3px; }
.call-fallback {
    margin-top: 16px; padding: 12px; border-radius: var(--radius);
    background: var(--amber-tint); color: var(--amber); font-size: .9rem;
}

@media (max-width: 480px) {
    .call-btn { bottom: 80px; right: 12px; }
    .chat-messages { max-height: 240px; }
    .chat-compose button { padding: 10px 12px; font-size: .9rem; }
}

/* ---------------------------------------------------------------- admin layout helpers */

.row { display: flex; gap: var(--gap); align-items: flex-start; flex-wrap: wrap; }
.row.align-center { align-items: center; }
.grow { flex: 1 1 0; min-width: 0; }
.fixed { flex: 0 0 auto; }
.inline { display: inline; margin: 0; }

.pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .02em;
    background: var(--green-tint); color: var(--green-dark);
}
.pill.stop { background: var(--danger-tint); color: var(--danger); }
.pill.wait { background: var(--amber-tint); color: #8A5A06; }

.btn-admin {
    min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 600;
    border: 1px solid var(--green-dark); border-radius: var(--radius);
    background: var(--green); color: #fff; cursor: pointer;
}
.btn-admin:hover { background: var(--green-dark); }
.btn-admin.danger { background: var(--danger); border-color: var(--danger); }
.btn-admin.danger:hover { background: var(--danger-dark); }
.btn-admin.quiet {
    background: var(--paper); color: var(--ink); border-color: var(--line);
}
.btn-admin.quiet:hover { background: var(--green-tint); }
.btn-admin.quiet.small { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn-admin:focus-visible { outline: 3px solid rgba(31, 138, 76, .45); outline-offset: 2px; }

.panel {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px;
    margin-bottom: var(--gap); box-shadow: var(--shadow);
}
.panel > :last-child { margin-bottom: 0; }

.figures {
    display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: var(--gap);
}
.figure {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; text-align: center;
}
.figure .label { display: block; font-size: .82rem; color: var(--ink-soft); }
.figure .value { display: block; font-size: 1.4rem; font-weight: 700; margin: 4px 0; }
.figure.bad { border-color: var(--danger-border); }

.admin-form .row { display: flex; gap: var(--gap); align-items: flex-end; flex-wrap: wrap; }
.admin-form .row > div { flex: 1 1 0; min-width: 0; }
.admin-form .row > .fixed { flex: 0 0 auto; }

.empty { color: var(--ink-soft); font-size: .9rem; }

/* ---------------------------------------------------------------- TOTP enrolment */
.totp-secret {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: .15em;
    word-break: break-all;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin: .75rem 0;
    text-align: center;
    user-select: all;
}

/* ---------------------------------------------------------------- shared utility (CSP) */
.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mb-m { margin-bottom: var(--gap); }
.mb-l { margin-bottom: 20px; }
.mb-xs { margin-bottom: 4px; }
.mt-xs { margin-top: 6px; }
.flex-1 { flex: 1; }
.info-box { margin-top: 8px; padding: 10px 14px; background: #f8fafc; border-radius: 8px; font-size: .9rem; }
.meta-note { margin-top: 8px; font-size: .85rem; color: var(--ink-soft); }
.action-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.detail-title { font-weight: 600; margin-bottom: 4px; }
.btn-accept { width: 100%; background: var(--green); color: #fff; border: none; cursor: pointer; }
.btn-accept:hover { background: var(--green-dark); }
.btn-decline { width: 100%; background: var(--paper); color: var(--danger); border: 2px solid var(--danger); cursor: pointer; }
.btn-decline:hover { background: var(--danger-tint); }

/* ---------------------------------------------------------------- receipt / print */

.receipt { max-width: 500px; margin: 0 auto; }
.receipt-header { text-align: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.receipt-header h1 { margin: 0; font-size: 1.4rem; }
.receipt-header p { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; }
.receipt-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.receipt-section h2 { font-size: .95rem; color: var(--ink-soft); margin-bottom: 8px; }
.receipt-footer { text-align: center; margin-top: 24px; font-size: .85rem; color: var(--ink-soft); }
.no-print { margin-top: 24px; display: flex; gap: 12px; align-items: center; }

@media print {
    .bar, .no-print, .push-banner { display: none !important; }
    main { padding: 0; max-width: 100%; }
    .receipt { max-width: 100%; }
    body { font-size: 11pt; }
}

/* tracking page: buyer account CTA */
.account-cta { text-align: center; border: 2px solid #1B3A5C; border-radius: 16px; }
.account-cta h2 { color: #1B3A5C; }
.account-cta-btn { display: inline-block; padding: 12px 32px; background: #1B3A5C; color: #fff; border-radius: 10px; font-weight: 600; text-decoration: none; margin-top: 8px; }
.account-cta-btn:hover { background: #264e78; color: #fff; }
