/* TrustGap brand: Deep Trust Navy #0B1B3D (primary base), Soft Digital White #F4F7FC (neutral light). */
:root {
  --navy: #0B1B3D;
  --white: #F4F7FC;
  --bg: #F4F7FC;
  --card: #ffffff;
  --text: #0B1B3D;
  --muted: #4A5878;
  --line: #DCE3EF;
  --brand: #0B1B3D;
  --brand-dark: #1A3266;
  --on-brand: #F4F7FC;
  --brand-soft: #E4EAF6;
  --link: #2350B0;
  --ok: #0E7A4A;
  --ok-soft: #E1F3EA;
  --warn: #9A5B00;
  --warn-soft: #FFF4DD;
  --danger: #B42318;
  --info: #1F4F99;
  --info-soft: #E8F0FB;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07122A;
    --card: #0E1F45;
    --text: #F4F7FC;
    --muted: #A9B6D3;
    --line: #1F3466;
    --brand: #F4F7FC;
    --brand-dark: #D6DFF2;
    --on-brand: #0B1B3D;
    --brand-soft: #16295A;
    --link: #9DB9F5;
    --ok: #4CC38A;
    --ok-soft: #10332A;
    --warn: #F0B04A;
    --warn-soft: #33270F;
    --danger: #FF6B5E;
    --info: #8BB4F5;
    --info-soft: #172A50;
  }
}

* { box-sizing: border-box; }
/* While the Roboto web font downloads, text uses Roboto already on the phone (all Android phones
   have it) or Arial resized to Roboto's measurements, so nothing jumps when the web font arrives. */
@font-face { font-family: "Roboto Local"; font-weight: 400; src: local("Roboto"), local("Roboto-Regular"); }
@font-face { font-family: "Roboto Local"; font-weight: 500; src: local("Roboto Medium"), local("Roboto-Medium"); }
@font-face { font-family: "Roboto Local"; font-weight: 700; src: local("Roboto Bold"), local("Roboto-Bold"); }
@font-face { font-family: "Roboto Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 100.3%; ascent-override: 92.77%; descent-override: 24.41%; line-gap-override: 0%; }
body {
  margin: 0;
  font: 16px/1.5 Roboto, "Roboto Local", "Roboto Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--link); }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
h3 { margin: 0 0 0.25rem; }

.testbar { background: #9A5B00; color: #fff; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 4px 8px; }
/* Pinned to the bottom of the screen so it never pushes the page down when it appears. */
.testbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; }
body.has-testbar { padding-bottom: 30px; }
body.has-testbar .consent { bottom: 40px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--navy); color: var(--white);
}
/* Wordmark: "Trust" bold, "Gap" regular, white on navy. */
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; color: var(--white); }
.logo span { font-weight: 400; }
.top nav a, .top .linklike { color: var(--white); }
.top .btn { background: var(--white); color: var(--navy); }
.top nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.top nav form { margin: 0; }
.protected { font-size: 0.9rem; color: var(--white); font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-warn { border-color: var(--warn); }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.pre { white-space: pre-wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--brand); color: var(--on-brand);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; margin: 4px 0;
}
.btn:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger:hover { background: #B42318; filter: brightness(0.9); }
.btn-wa { background: #1f9e55; color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.linklike { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.inline { display: inline; }

.form label { display: block; margin: 12px 0; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 12px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 6px; }
.label { font-weight: 600; margin: 12px 0 4px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.form label.choice, label.choice {
  display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
/* "I agree to the Terms of Service": the sentence holds links, so it flows as text instead of flex items. */
.form label.choice.terms-check, label.choice.terms-check { display: block; text-align: left; line-height: 1.5; margin: 0 0 12px; }
.terms-check input { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--navy); }
.terms-check a { text-decoration: underline; }
.grid2, .grid3 { display: grid; gap: 0 12px; }
@media (min-width: 600px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

.error { background: #fdecea; color: var(--danger); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
@media (prefers-color-scheme: dark) { .error { background: #3a1714; } }
.flash { background: var(--brand-soft); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.callout { border-radius: 10px; padding: 12px 14px; margin: 12px 0; background: var(--info-soft); }
.callout.ok { background: var(--ok-soft); }
.callout.warn { background: var(--warn-soft); }
.callout .form, .callout form { margin-top: 8px; }

.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.breakdown { width: 100%; border-collapse: collapse; margin: 12px 0; }
.breakdown td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.breakdown .total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 12px 0; }
.facts li { padding: 4px 0; }
.rules { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.rules summary { font-weight: 600; cursor: pointer; }
.rules li { margin: 6px 0; }
.seller-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 0; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 0.85rem; padding: 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.steps li.done { color: var(--ok); }

.pinbox { text-align: center; background: var(--brand-soft); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.pinbox p { margin: 4px 0; }
.pin { font-size: 2.5rem; font-weight: 800; letter-spacing: 0.4em; color: var(--brand); padding-left: 0.4em; }
.pinform { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }

.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.share input { flex: 1 1 220px; padding: 11px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--bg); }
.right { text-align: right; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--muted); font-size: 0.9rem; }
.stat span { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.filters a { margin-right: 10px; text-decoration: none; font-size: 0.9rem; }
.filters a.on { font-weight: 700; text-decoration: underline; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 10px 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.t-time { display: block; font-size: 0.8rem; color: var(--muted); }
.t-detail { display: block; font-size: 0.75rem; color: var(--muted); word-break: break-all; }

.hint { font-size: 0.875rem; background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.hint summary { cursor: pointer; font-weight: 600; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 1.9rem; }
.three { display: grid; gap: 12px; }
@media (min-width: 700px) { .three { grid-template-columns: repeat(3, 1fr); } }
.card, .row, li { overflow-wrap: anywhere; }
.hidden { display: none !important; }
.loading { color: var(--muted); padding: 24px 0; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.devcode { background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 0.9rem; }
.codeinput { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; }
.top nav a.on { font-weight: 700; }
.flash-wrap { max-width: 760px; margin: 16px auto 0; padding: 0 16px; }
.pricebox { margin: 12px 0; }
.pricebox .breakdown { margin: 0; }

/* ======================================================================== site layout & marketing */
html { scroll-behavior: smooth; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top { position: sticky; top: 0; z-index: 50; padding: 0; display: block; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.top .nav a { text-decoration: none; opacity: 0.9; }
.top .nav a:hover, .top .nav a.on { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.btn-light { background: var(--white) !important; color: var(--navy) !important; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .top .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .menu-open .top .site-nav { display: flex; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Marketing pages use full-width sections instead of the narrow app column. */
body.site main { max-width: none; padding: 0; }
.section { padding: 72px 0; }
.section.alt { background: var(--card); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy .muted, .section.navy p { color: #C9D3EA; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--link); margin: 0 0 8px; }
.section.navy .eyebrow { color: #9DB9F5; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.center-block { text-align: center; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; gap: 40px; align-items: center; }
.grid-3, .grid-5 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 620px) and (max-width: 979px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.section.alt .tile { background: var(--bg); }
.tile h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; color: var(--navy); }
@media (prefers-color-scheme: dark) { .icon { color: var(--white); } }
.icon svg { width: 24px; height: 24px; }
.step-num { font-weight: 800; color: var(--link); font-size: .85rem; letter-spacing: .08em; }
.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft);
  color: var(--ok); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.quote-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.quote-list li { background: var(--bg); border-left: 3px solid var(--link); padding: 10px 14px; border-radius: 0 10px 10px 0; font-style: italic; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-outline-light { background: transparent !important; color: var(--white) !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.08) !important; }
.needs-partner-approval { display: none !important; }

/* Image slots: real photo when the file exists, labelled placeholder until then. */
.img-slot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--brand-soft); aspect-ratio: 4 / 3; }
.img-slot.wide { aspect-ratio: 16 / 9; }
.img-slot.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 20px;
  border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(11,27,61,.03) 12px 24px); }
.img-ph strong { color: var(--text); font-size: .95rem; }
.img-ph small { font-size: .75rem; }

/* Highlighted placeholders such as [SUPPORT EMAIL] until filled in site-info.js */
.ph { background: #FFF4C2; color: #5C4400; border-radius: 4px; padding: 0 3px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .ph { background: #4A3B0A; color: #FFE08A; } }

/* Sample deal screen (homepage transparency block) */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(11,27,61,.35); max-width: 420px; }
.mock .row2 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mock .row2:last-of-type { border-bottom: 0; }
.mock .tot { font-weight: 800; font-size: 1.05rem; }
.status-strip { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.status-strip span { font-size: .72rem; padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.status-strip span.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.status-strip span.now { background: var(--navy); color: var(--white); border-color: transparent; }
.journey { margin: 14px 0 6px; }
.journey .status-strip { margin: 0 0 8px; }
.journey .status-strip button { font: inherit; font-size: .72rem; padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.journey .status-strip button.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.journey .status-strip button.now { background: var(--navy); color: var(--white); border-color: transparent; }
.journey .status-strip button.picked, .journey .status-strip button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.step-info { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; min-height: 1.5em; }
.next-step { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.handover-check { margin: 6px auto 0; padding-left: 0; list-style: none; font-size: .92rem; text-align: left; display: inline-block; }
.handover-check li { padding: 3px 0; }
.handover-check li::before { content: '☐ '; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Page header for inner marketing pages */
.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; max-width: 760px; }
.page-hero p { color: #C9D3EA; font-size: 1.1rem; max-width: 680px; margin: 0; }

/* Policy pages */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal p, .legal li { line-height: 1.7; }
.draft-notice { background: var(--warn-soft); color: var(--text); border-left: 4px solid var(--warn); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 16px 0 24px; font-size: .92rem; }
.legal-index a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }

/* Fee calculator */
.calc { display: grid; gap: 24px; }
@media (min-width: 820px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Footer */
.site-foot { background: #07122A; color: #C9D3EA; padding: 56px 0 24px; margin-top: 0; font-size: .92rem; }
.site-foot a { color: #C9D3EA; display: block; padding: 3px 0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-foot .logo { display: inline-block; color: #fff; margin-bottom: 8px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.3fr 0.9fr 1.2fr 1.1fr 1fr; } }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #8E9BBB; }
.foot-bottom a { display: inline; }
.foot { display: none; }

/* ======================================================================== hero + animation */
.hero-wrap { background: radial-gradient(1200px 500px at 85% -10%, #1C3470 0%, transparent 60%), var(--navy); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; padding: 56px 20px 64px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; padding: 80px 20px 88px; } }
.hero-wrap h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero-wrap h1 em { font-style: normal; color: #9DB9F5; }
.hero-wrap .hero-sub { font-size: 1.15rem; color: #C9D3EA; max-width: 560px; margin: 0; }
.hero-mech { margin-top: 22px; font-weight: 700; letter-spacing: .02em; color: #fff; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-mech span { opacity: .55; transition: opacity .3s; }
.hero-mech span.on { opacity: 1; color: #9DB9F5; }
.hero-note { margin-top: 18px; font-size: .85rem; color: #8E9BBB; }

.anim { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.anim svg { width: 100%; height: auto; display: block; overflow: visible; }
.anim .caption { text-align: center; min-height: 3.2em; margin-top: 6px; }
.anim .caption b { display: block; font-size: 1.15rem; color: #fff; }
.anim .caption span { color: #C9D3EA; font-size: .95rem; }

/* Hero animation: the SVG's data-step (0–5) drives every element through CSS transitions. */
.anim svg * { transition: opacity .6s ease, transform 1.1s cubic-bezier(.65,0,.35,1); }
.anim .t-label { fill: #C9D3EA; font: 600 13px Roboto, "Roboto Local", "Roboto Fallback", sans-serif; }
.anim .t-small { fill: #8E9BBB; font: 500 11px Roboto, "Roboto Local", "Roboto Fallback", sans-serif; }
.anim .t-dark { fill: #0B1B3D; font: 700 12px Roboto, "Roboto Local", "Roboto Fallback", sans-serif; }
.anim .bubble, .anim .deal, .anim .shield, .anim .coin, .anim .parcel, .anim .lens, .anim .pin, .anim .ok-b, .anim .ok-s, .anim .closed { opacity: 0; }
.anim .bridge { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.anim .gap-label { transition: opacity .6s; }
.anim .shield { transform-box: fill-box; transform-origin: center; transform: scale(.6); }
/* 0 Agree */
.anim [data-step="0"] .bubble { opacity: 1; }
.anim svg:not([data-step="0"]) .bubble { opacity: 0; }
.anim svg:not([data-step="-1"]) .deal { opacity: 1; }
/* 1 Secure: shield appears, bridge forms, ₦ moves into the shield */
.anim [data-step="1"] .shield, .anim [data-step="2"] .shield, .anim [data-step="3"] .shield, .anim [data-step="4"] .shield, .anim [data-step="5"] .shield { opacity: 1; transform: scale(1); }
.anim [data-step="1"] .bridge, .anim [data-step="2"] .bridge, .anim [data-step="3"] .bridge, .anim [data-step="4"] .bridge, .anim [data-step="5"] .bridge { transform: scaleX(1); }
.anim [data-step="1"] .coin, .anim [data-step="2"] .coin, .anim [data-step="3"] .coin { opacity: 1; transform: translate(190px, 0); }
/* 2 Deliver: parcel crosses the bridge from seller to buyer */
.anim [data-step="2"] .parcel { opacity: 1; transform: translate(-300px, 0); }
.anim [data-step="3"] .parcel, .anim [data-step="4"] .parcel, .anim [data-step="5"] .parcel { opacity: 1; transform: translate(-300px, 0); }
/* 3 Inspect: magnifier + PIN at the buyer */
.anim [data-step="3"] .lens, .anim [data-step="3"] .pin { opacity: 1; }
.anim [data-step="3"] .ok-b, .anim [data-step="4"] .ok-b, .anim [data-step="5"] .ok-b { opacity: 1; }
/* 4 Release: ₦ moves from the shield to the seller */
.anim [data-step="4"] .coin, .anim [data-step="5"] .coin { opacity: 1; transform: translate(380px, 0); }
.anim [data-step="4"] .ok-s, .anim [data-step="5"] .ok-s { opacity: 1; }
/* 5 Gap closed */
.anim [data-step="5"] .closed { opacity: 1; }
.anim [data-step="1"] .gap-label, .anim [data-step="2"] .gap-label, .anim [data-step="3"] .gap-label, .anim [data-step="4"] .gap-label, .anim [data-step="5"] .gap-label { opacity: 0; }
.anim [data-step="5"] .bridge-fill { fill: #9DB9F5; }
/* Reduce motion: nothing slides or grows; each scene simply fades into the next. */
@media (prefers-reduced-motion: reduce) { .anim svg * { transition-property: opacity !important; transition-duration: .5s !important; } }

/* ---- Inner marketing pages ---- */
.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 6px; cursor: pointer; font-weight: 500; font-size: .92rem; }
.seg input:checked + span { background: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -2px; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.calc legend { font-weight: 500; margin-bottom: 6px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: .92rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.legal h2 { scroll-margin-top: 80px; }
.legal-index a small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.page-hero .eyebrow a { color: inherit; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.status-list b { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--navy); justify-self: start; }
.status-list b.money { background: var(--ok-soft); color: var(--ok); }
.status-list b.alert { background: var(--warn-soft); color: var(--warn); }
.status-list span { color: var(--muted); }
@media (max-width: 640px) { .status-list li { grid-template-columns: 1fr; gap: 6px; } }
@media (prefers-color-scheme: dark) { .status-list b { color: var(--text); } }
.case { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.case h3 { margin: 0 0 8px; font-size: 1.05rem; }
.case p { margin: 0 0 8px; color: var(--muted); }
.case .then { color: var(--text); font-weight: 500; margin: 0; }
.does { display: grid; gap: 20px; }
@media (min-width: 760px) { .does { grid-template-columns: 1fr 1fr; } }
.does .tile h3 { margin-top: 0; }
.not-list { list-style: none; padding: 0; margin: 12px 0 0; }
.not-list li { padding: 6px 0 6px 30px; position: relative; }
.not-list li::before { content: "✕"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--warn-soft); color: var(--warn);
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.mock .btn-danger-outline { display: block; text-align: center; margin-top: 12px; padding: 10px; border: 1px solid var(--danger); color: var(--danger); border-radius: 10px; font-weight: 600; text-decoration: none; }
.mock .seller-id { font-size: .85rem; color: var(--muted); }
.faq-group h2 { margin-top: 0; }
.faq-group + .faq-group { margin-top: 40px; }
.steps-long { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.steps-long li { padding: 0 0 20px 22px; position: relative; }
.steps-long li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--bg); }
.steps-long h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps-long p { margin: 0; color: var(--muted); }
@media (prefers-color-scheme: dark) { .steps-long li::before { background: var(--white); } }

/* ---- Speed and stability on phones ---- */
/* The header is drawn by JavaScript; reserve its height first so the page doesn't jump down. */
.top-in { min-height: 64px; padding-top: 8px; padding-bottom: 8px; box-sizing: border-box; }
body:not(.has-shell) { padding-top: 64px; }
/* Sections below the first screen are only laid out when they scroll near, so long pages open faster. */
body.site main > section:nth-of-type(n+3), body.site .legal > :nth-child(n+12) { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ---- Cookie banner ---- */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px -12px rgba(11,27,61,.45);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent div { display: flex; gap: 8px; margin-left: auto; }
.foot-bottom .linklike { color: inherit; text-decoration: underline; font: inherit; padding: 0; }
.table-wrap { overflow-x: auto; }
.cookie-table { font-size: .88rem; min-width: 560px; }
.cookie-table th { text-align: left; padding: 8px; border-bottom: 2px solid var(--line); }
.cookie-table td { vertical-align: top; padding: 8px; }
/* App pages fill in after loading; keep the footer below the screen so it doesn't jump down. */
body:not(.site) > main { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }

/* ---- Item photos ---- */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px 0 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.gallery a { flex: 0 0 82%; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--brand-soft); aspect-ratio: 4 / 3; }
.gallery a:only-child { flex-basis: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 700px) { .gallery a { flex-basis: calc(50% - 4px); } }
.photo-field { margin: 4px 0 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.photo-grid:empty { display: none; }
.photo-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(11,27,61,.8); color: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-add { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-add:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.photo-field .label small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* ---- Step 1: confirm card ---- */
.confirm-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 20px; background: var(--card); }
.confirm-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.confirm-box > p { margin: 0 0 10px; }
.confirm-inner { background: var(--info-soft); border-radius: 12px; padding: 16px; margin-top: 14px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.confirm-inner form { width: 100%; margin-top: 10px; }
.confirm-icon { color: var(--navy); }
.btn-confirm { font-size: 1.02rem; padding: 14px 16px; }
@media (prefers-color-scheme: dark) { .confirm-icon { color: var(--white); } }
.promo-box { margin: 12px 0 0; }
.promo-box summary { cursor: pointer; color: var(--link); font-weight: 500; }
.promo-row { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.promo-row input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.promo-row .form-error { flex-basis: 100%; }
.promo-row { flex-wrap: wrap; }
.breakdown tr.discount td { color: var(--ok); }
.ok-text { color: var(--ok); margin: 6px 0 0; }
.code-input { text-transform: uppercase; letter-spacing: .05em; }

/* ---- Launch switch (site-info.js → launched) ---- */
body:not(.is-live) .when-live { display: none !important; }
body.is-live .when-prelaunch { display: none !important; }

/* ---- Pre-launch campaign ---- */
.launch-pill { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(157,185,245,.16);
  color: #C9D8FA; font-size: .85rem; font-weight: 600; border: 1px solid rgba(157,185,245,.35); }
.campaign { background: var(--info-soft); }
.campaign-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .campaign-in { grid-template-columns: 1.2fr 1fr; } }
.campaign h2 { margin-top: 0; }
.campaign-cards { display: grid; gap: 12px; }
.campaign-card { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); box-shadow: 0 10px 24px -18px rgba(11,27,61,.5); position: relative; padding-right: 44px; }
.campaign-card::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--link); }
.campaign-card strong { font-size: 1.05rem; }
.campaign-card span { color: var(--muted); font-size: .92rem; }
.campaign-card.alt { background: var(--navy); color: var(--white); border-color: var(--navy); }
.campaign-card.alt span { color: #C9D3EA; }
.campaign-card.alt::after { color: var(--white); }
.campaign-card:hover { border-color: var(--link); }

/* ---- Survey and early access ---- */
.page-hero-sm { padding: 44px 0 40px; }
.sv-section { padding-top: 28px; }
.sv-wrap { max-width: 640px; }
.sv-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px; box-shadow: 0 20px 40px -30px rgba(11,27,61,.45); }
.sv-card h1 { font-size: 1.45rem; line-height: 1.25; margin: 4px 0 12px; }
.sv-card h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 14px; }
.sv-progress { height: 6px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; margin-bottom: 18px; }
.sv-progress span { display: block; height: 100%; background: var(--link); transition: width .3s; }
.sv-count { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.sv-q { border: 0; padding: 0; margin: 0; }
.sv-q legend { padding: 0; outline: none; }
.sv-options { display: grid; gap: 8px; margin-bottom: 10px; }
.sv-two { grid-template-columns: 1fr 1fr; }
.sv-opt { text-align: left; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: .98rem; cursor: pointer; min-height: 48px; }
.sv-opt:hover { border-color: var(--link); }
.sv-opt.on { border-color: var(--navy); background: var(--navy); color: var(--white); }
@media (prefers-color-scheme: dark) { .sv-opt.on { background: var(--white); color: var(--navy); } }
.sv-other, .sv-select, .sv-text { width: 100%; box-sizing: border-box; font: inherit; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); margin-bottom: 10px; }
.sv-err { color: var(--danger); min-height: 1.2em; margin: 4px 0 8px; font-size: .92rem; }
.sv-back { display: block; margin: 12px auto 0; }
.sv-restart, .sv-again { display: block; margin: 12px auto 0; text-align: center; }
.sv-facts { padding-left: 18px; margin: 0 0 18px; }
.sv-facts li { margin-bottom: 6px; }
.sv-warn { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 0 0 14px; }
.sv-note { background: var(--info-soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.sv-contact { margin-top: 6px; }
.sv-done { text-align: center; display: grid; gap: 12px; }
.sv-done p { margin: 0; }
.sv-tick { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.sv-code { border: 2px dashed var(--link); border-radius: 14px; padding: 14px; display: grid; gap: 4px; background: var(--info-soft); }
.sv-code p { font-size: .85rem; color: var(--muted); }
.sv-code strong { font-size: 1.6rem; letter-spacing: .12em; }
.sv-code span { font-size: .88rem; color: var(--muted); }
.ea-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Confirmation pop-up ---- */
.modal { border: 0; border-radius: 18px; padding: 0; max-width: min(460px, calc(100vw - 32px)); width: 100%; background: var(--card); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(11,27,61,.6); }
.modal::backdrop { background: rgba(11,27,61,.55); }
.modal form { padding: 22px 20px 18px; display: grid; gap: 10px; }
.modal h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.modal p { margin: 0 0 6px; color: var(--muted); line-height: 1.55; }
.modal-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
  background: var(--warn-soft); color: var(--warn); }
.consents { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.consents p { margin: 0 0 8px; }
.debt-box .btn { margin: 4px 0 6px; }
.pay-name-note { background: var(--info-soft); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; }

/* ---- About: team ---- */
.team-grid { display: grid; gap: 20px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1); transition: filter .3s; }
.person:hover img, .person:focus-within img { filter: none; }
.person-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.person-body h3 { margin: 0; font-size: 1.12rem; }
.person-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.person-role { color: var(--link) !important; font-weight: 600; font-size: .9rem !important; }
.person-focus { font-size: .88rem !important; }
.person-link { margin-top: auto; padding-top: 6px; font-weight: 500; font-size: .92rem; }

/* Plain page links for crawlers without JavaScript (removed by the site script). */
.static-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 24px 20px; max-width: 1120px; margin: 0 auto; font-size: .9rem; }

/* The seller's return PIN on their order page. */
.return-box .return-pin-label { margin: 12px 0 2px; font-weight: 600; }
.return-box .pin { margin: 0 0 8px; }

/* How it works: the two return paths, side by side. */
.returns-grid { align-items: stretch; }
.returns-grid .steps-long { margin-top: 16px; }
.returns-grid .steps-long h4 { margin: 0 0 2px; font-size: 1rem; }
.returns-grid .steps-long li:last-child { padding-bottom: 0; }

/* Team portal and the admin's team page. */
.task h2 { margin: 0; font-size: 1.15rem; }
.notes { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.notes li { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
.note-form { margin-top: 12px; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.task-controls { display: grid; gap: 6px; align-content: start; }
.warn-row { border-left: 3px solid var(--warn, #b45309); }
.manual h2 { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.manual h3 { margin-top: 18px; }
.manual table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.manual th, .manual td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 6px; }
.manual dt { font-weight: 700; margin-top: 12px; }
.manual dd { margin: 4px 0 0; }
.inline-form input, .task-controls select { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.manual section { scroll-margin-top: 84px; }

/* TrustGap camera (in-page, stamped photos for evidence). */
.camera-modal { max-width: min(560px, calc(100vw - 16px)); }
.camera { padding: 12px; display: grid; gap: 8px; }
.camera video { width: 100%; max-height: 62vh; background: #000; border-radius: 12px; object-fit: contain; }
.camera-stamp { margin: 0; font-size: .8rem; font-weight: 600; color: var(--text); background: var(--info-soft); border-radius: 8px; padding: 6px 8px; }
.camera-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.photo-grid figure { position: relative; }
.photo-tag { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; background: rgba(11,27,61,.8); color: #fff; padding: 2px 5px; border-radius: 6px; }
.live-note { background: var(--info-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: .9rem; }
.photo-checks { list-style: none; padding: 0; margin: 6px 0 0; font-size: .85rem; display: grid; gap: 4px; }
.photo-checks .ok { color: var(--ok, #0E7C5A); }
.photo-checks .warn { color: var(--warn, #b45309); }
.pin-inline { font-size: 1.2rem; letter-spacing: .2em; }
.card-muted { opacity: .72; }
/* Each side's account in a case. */
.accounts { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.account { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.account-buyer { border-left-color: #3b82f6; }
.account-seller { border-left-color: #0E7C5A; }
.account-rider, .account-courier { border-left-color: #b45309; }
.account-head { margin: 0 0 4px; }
.account .pre { margin: 0; }
/* Live updates: the "updated" line and the "new update" bar. */
.live-line { max-width: 980px; margin: 10px auto -4px; padding: 0 16px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.live-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 60; background: var(--navy); color: #fff;
  border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
/* Admin records by date. */
.date-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 8px 0 14px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.date-filters .quick { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.date-filters .quick a { font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.date-filters .quick a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.date-filters label { display: grid; gap: 2px; font-size: .8rem; font-weight: 600; }
.date-filters input, .date-filters select { font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.day-group { margin: 0 0 14px; }
.day-head { margin: 10px 0 6px; padding: 6px 10px; font-size: .95rem; background: var(--info-soft); border-radius: 8px; }
.list .day-group { margin: 0; }
.list .day-head { margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); }

/* Deal page: the seller's record and the "no surprises" line */
.lead-note { margin: 10px 0 14px; font-weight: 600; color: var(--text); }
.seller-record { margin: 6px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.seller-record p { margin: 0; }
.record-stats { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; color: var(--muted); }
.record-stats strong { color: var(--text); }

/* Seller price calculator: the message to send the buyer */
#for-buyer { width: 100%; font: inherit; font-size: .95rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); resize: vertical; }

/* Survey: the reward, stated before anyone starts */
.sv-reward { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; padding: 14px 16px; border: 2px dashed var(--link); border-radius: 14px; background: var(--info-soft); }
.sv-reward-icon { font-size: 1.6rem; line-height: 1; }
.sv-reward strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 1.02rem; }
.sv-reward span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sv-opt small { display: block; font-weight: 400; font-size: .78rem; opacity: .8; }

/* WhatsApp chat buttons on disputes */
.btn-whatsapp { background: #1f8f4e; color: #fff; border-color: transparent; }
.btn-whatsapp:hover { background: #18773f; color: #fff; }

/* Footer: TrustGap's social pages */
.socials { display: flex; gap: 10px; margin: 14px 0 0; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: inherit; }
.socials a:hover, .socials a:focus-visible { background: rgba(255, 255, 255, .12); }

/* Guided tours (tour.js) */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour-block { position: absolute; inset: 0; }
.tour.tour-dim .tour-block { background: rgba(7, 18, 42, .62); }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(7, 18, 42, .62); outline: 3px solid #F4B740; outline-offset: 0; transition: top .25s, left .25s, width .25s, height .25s; pointer-events: none; }
.tour-card { position: fixed; z-index: 1001; background: var(--card); color: var(--text); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); max-width: 420px; }
.tour-card h2 { font-size: 1.08rem; margin: 2px 0 6px; }
.tour-card p { margin: 0 0 12px; line-height: 1.5; font-size: .95rem; }
.tour-count { font-size: .78rem !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--link); margin: 0 !important; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tour-skip { margin-left: auto; font-size: .9rem; }
.tour-card-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); }
@media (max-width: 699px) {
  .tour-card:not(.tour-card-center) { left: 12px; right: 12px; bottom: 12px; max-height: 46vh; overflow: auto; }
}
.tour-welcome { position: fixed; inset: 0; z-index: 1000; background: rgba(7, 18, 42, .62); }
.tour-welcome .tour-card { text-align: center; }
.tour-welcome .tour-actions { justify-content: center; }
.tour-wave { font-size: 2rem; margin: 0 0 4px !important; }
.tour-hint { font-size: .85rem !important; color: var(--muted); margin: 12px 0 0 !important; }
.tour-invite { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 40px; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .25); }
.tour-invite p { margin: 0 0 10px; font-weight: 500; }
.tour-help { position: fixed; z-index: 85; right: 14px; bottom: 40px; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid #fff; background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.tour-help span[aria-hidden] { font-size: 1.1rem; }
@media (max-width: 699px) { .tour-help-label { display: none; } .tour-help { padding: 0; justify-content: center; } }
body.touring .tour-help, body.touring .tour-invite { display: none; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* Slim footer inside accounts and on deal pages: one line, the full footer under "More links" */
.site-foot-slim { padding: 14px 0 64px; font-size: .85rem; }
.site-foot-slim .slim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.site-foot-slim .slim-row a { display: inline; padding: 0; }
.foot-more > summary { cursor: pointer; list-style: none; color: #8E9BBB; padding-top: 8px; padding-bottom: 4px; display: block; }
.foot-more > summary::-webkit-details-marker { display: none; }
.foot-more > summary::after { content: ' ▾'; }
.foot-more[open] > summary::after { content: ' ▴'; }
.foot-more[open] { padding-top: 20px; }

/* Estimated delivery under an order's progress */
.eta-line { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); font-size: .95rem; line-height: 1.5; }

/* Referrals: the seller's invite card */
.invite-card h2 { margin-top: 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.share-row input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; }
.invite-stats { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.share-card { border: 2px solid var(--ok-soft, #d8f0e3); }
.share-card h2 { margin-top: 0; }

/* Admin → Ledger: segment cards */
.ledger-segments { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.seg-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; }
.seg-card span { font-size: .85rem; color: var(--muted); }
.seg-card strong { font-size: 1.15rem; }
.seg-card small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.seg-card.on { border: 2px solid var(--link); }
.seg-card.warn strong { color: #B4530B; }

/* ======================================================================== app layout
   Seller, admin and team accounts, and the buyer's deal pages, look and work like a phone app:
   a slim top bar with the page name, a tab bar at the bottom on phones, a side menu on computers,
   soft cards and large tap targets. The public pages are not affected (body.app is only set here). */
body.app { --app-bg: #EEF2F9; --tab-h: 64px; --side-w: 236px; --shadow: 0 1px 2px rgba(11,27,61,.06), 0 10px 28px -16px rgba(11,27,61,.22);
  background: var(--app-bg); -webkit-tap-highlight-color: transparent; }
@media (prefers-color-scheme: dark) { body.app { --app-bg: #06102A; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.7); } }

/* Top bar */
.app-top .top-in { max-width: none; padding: 0 16px; height: 56px; gap: 12px; }
.app-top .logo { font-size: 1.2rem; flex-shrink: 0; }
.app-title { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.app-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #C9D6F2; border-radius: 999px; padding: 3px 9px; }
.app-buyer .app-top .top-in { justify-content: space-between; }

/* Tab bar: phones (bottom) */
.app-nav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px -12px rgba(11,27,61,.25); }
.app-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font: inherit; font-size: .7rem; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 2px; position: relative; }
.tab-icon { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background .15s; }
.tab-icon svg { width: 22px; height: 22px; }
.app-tab.on { color: var(--text); }
.app-tab.on .tab-icon { background: var(--brand-soft); }
.app-tab:active .tab-icon { transform: scale(.92); }
.tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab-primary .tab-icon { width: 48px; height: 48px; margin-top: -22px; background: var(--navy); color: #fff; box-shadow: 0 8px 18px -6px rgba(11,27,61,.6); border: 3px solid var(--card); }
.tab-primary.on .tab-icon { background: var(--navy); }
@media (prefers-color-scheme: dark) { .tab-primary .tab-icon { background: #F4F7FC; color: #0B1B3D; } .tab-primary.on .tab-icon { background: #F4F7FC; } }
.tab-extra, .tab-logout { display: none; }
.app-seller .tab-logout { display: none; } /* sellers log out from Settings on phones */
.app-team .tab-logout { display: flex; }   /* the team bar has room for it */

/* "More" sheet (admin, phones) */
.app-sheet-shade { display: none; position: fixed; inset: 0; z-index: 69; background: rgba(7,18,42,.45); }
.app-sheet { display: none; position: fixed; z-index: 72; left: 8px; right: 8px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px);
  background: var(--card); border-radius: 18px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.app-sheet a, .app-sheet button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border-radius: 12px; border: 0; background: none;
  color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.app-sheet a.on, .app-sheet a:hover, .app-sheet button:hover { background: var(--brand-soft); }
.app-sheet .tab-icon { width: 28px; }
.more-open .app-sheet-shade, .more-open .app-sheet { display: block; }

/* Room for the tab bar, and everything that sits at the bottom of the screen moves up above it */
body.has-tabs { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.testbar.testbar-top { position: sticky; top: 56px; z-index: 49; font-size: .72rem; padding: 3px 8px; }
body.has-tabs .tour-help { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 34px); }
body.has-tabs .tour-invite { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 34px); }
body.has-tabs .live-bar { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 38px); }
body.has-tabs .consent { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 34px); }
body.app .site-foot-slim { padding-bottom: 40px; }

/* Side menu: computers and tablets in landscape */
@media (min-width: 960px) {
  .app-nav { top: 56px; bottom: 0; right: auto; width: var(--side-w); height: auto; flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 16px 12px; border-top: 0; border-right: 1px solid var(--line); box-shadow: none; overflow-y: auto; }
  .app-tab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: .95rem; padding: 4px 6px; border-radius: 12px; color: var(--muted); }
  .app-tab:hover { background: var(--bg); color: var(--text); }
  .app-tab .tab-icon { width: 36px; height: 36px; border-radius: 10px; }
  .app-tab.on { background: var(--brand-soft); }
  .app-tab.on .tab-icon { background: transparent; }
  .tab-primary { order: -1; margin-bottom: 10px; background: var(--navy); color: #fff !important; }
  .tab-primary:hover { background: var(--brand-dark); }
  .tab-primary .tab-icon { margin: 0; width: 36px; height: 36px; border: 0; box-shadow: none; background: transparent; }
  .tab-primary.on { background: var(--navy); }
  .tab-primary.on .tab-icon { background: transparent; }
  @media (prefers-color-scheme: dark) { .tab-primary { background: #F4F7FC; color: #0B1B3D !important; } .tab-primary .tab-icon, .tab-primary.on .tab-icon { background: transparent; } }
  .tab-extra { display: flex; }
  .tab-more { display: none; }
  .app-seller .tab-logout, .app-tab.tab-logout { display: flex; margin-top: auto; }
  .app-sheet, .app-sheet-shade, .more-open .app-sheet, .more-open .app-sheet-shade { display: none; }
  body.has-tabs { padding-bottom: 0; padding-left: var(--side-w); }
  body.has-tabs .app-top { margin-left: calc(-1 * var(--side-w)); }
  body.has-tabs .tour-help, body.has-tabs .tour-invite { bottom: 40px; }
  body.has-tabs .live-bar { bottom: 52px; }
  body.has-tabs .consent { bottom: 12px; }
}

/* Content: one comfortable column, wider for the admin */
body.app main { max-width: 760px; padding: 18px 16px 24px; }
body.app-admin main, body.app-team main { max-width: 980px; }
body.app .live-line, body.app .flash-wrap { max-width: 760px; }
body.app-admin .live-line, body.app-admin .flash-wrap { max-width: 980px; }
@media (prefers-reduced-motion: no-preference) {
  body.app #app > * { animation: app-in .22s ease-out both; }
  @keyframes app-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
body.app h1 { font-size: 1.45rem; letter-spacing: -.01em; }
body.app .page-title { font-size: 1.6rem; margin: 2px 0 14px; }
body.app h2 { font-size: 1.08rem; }
body.app .card-title { margin: 0 0 8px; font-size: 1.15rem; }

/* Cards and lists: soft, borderless, rounded */
body.app .card, body.app .list, body.app .stat, body.app .seg-card, body.app .date-filters, body.app .rules, body.app fieldset {
  border-color: transparent; border-radius: 18px; box-shadow: var(--shadow); }
body.app .card { padding: 18px; }
body.app fieldset { background: var(--card); }
body.app .card fieldset { box-shadow: none; background: var(--bg); border: 0; padding: 4px 14px 12px; }
body.app .card fieldset legend { float: left; width: 100%; padding: 12px 0 0; }
body.app .card fieldset legend + * { clear: both; }
body.app .rules { background: var(--card); }
body.app .list { border-radius: 18px; }
body.app .row { padding: 14px 16px; min-height: 64px; align-items: center; }
body.app a.row { position: relative; padding-right: 34px; }
body.app a.row::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg); opacity: .55; }
body.app a.row:active { background: var(--bg); }
body.app .card-warn { box-shadow: var(--shadow), inset 0 0 0 2px var(--warn); }
body.app .callout { border-radius: 14px; }
body.app .narrow { max-width: 560px; }

/* Numbers at a glance: swipeable on phones */
body.app .stats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px; padding: 4px 16px 10px; scrollbar-width: none; }
body.app .stats::-webkit-scrollbar { display: none; }
body.app .stat { flex: 1 0 140px; scroll-snap-align: start; padding: 14px 16px; background: var(--card); }
body.app .stat span { font-size: 1.5rem; }
body.app .stat:first-child { background: var(--navy); color: #C9D6F2; }
body.app .stat:first-child span { color: #fff; }
@media (prefers-color-scheme: dark) { body.app .stat:first-child { background: #1A3266; } }

/* Quick actions under the numbers (dashboard): two big tiles on phones */
body.app-seller #app > .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
body.app-seller #app > .actions .btn { margin: 0; text-align: center; padding: 14px 10px; }

/* Buttons and fields: finger-sized */
body.app .btn { min-height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
body.app .btn-small { min-height: 38px; border-radius: 11px; }
body.app .btn:active { transform: scale(.98); }
body.app .form input:not([type=radio]):not([type=checkbox]), body.app .form select, body.app .form textarea { min-height: 50px; border-radius: 12px; background: var(--card); }
body.app .form textarea { min-height: 96px; }
body.app label.choice { border-radius: 12px; min-height: 50px; }
@media (max-width: 599px) {
  body.app .card .btn:not(.btn-small), body.app .modal .btn { width: 100%; }
  body.app .actions .btn { flex: 1 1 auto; }
}

/* Buyer's deal link (step 1 and 2): progress bar and a pay button that stays in reach */
.app-buyer .steps { gap: 0; background: var(--card); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin: 0 0 16px; }
.app-buyer .steps li { border: 0; background: none; border-radius: 999px; padding: 8px 6px; font-size: .82rem; }
.app-buyer .steps li.on { background: var(--navy); color: #fff; border: 0; }
.app-buyer .steps li.done { color: var(--ok); }
.app-buyer .steps li.done::before { content: "✓ "; }
@media (prefers-color-scheme: dark) { .app-buyer .steps li.on { background: #F4F7FC; color: #0B1B3D; } }
@media (max-width: 699px) {
  .app-buyer form > .btn-block:last-child, .app-buyer form > .btn-confirm {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 10px 24px -8px rgba(11,27,61,.55); }
}
.app-buyer .pinbox { border-radius: 18px; }

/* Tables inside cards scroll sideways on small screens instead of squashing */
body.app .card table.breakdown { display: block; overflow-x: auto; }
body.app .card table.breakdown tbody { display: table; width: 100%; }

/* Seller Settings: who you are, and how far setup has got */
.me-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .avatar { background: #F4F7FC; color: #0B1B3D; } }
.setup-steps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.setup-steps span { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.setup-steps span.done { background: var(--ok-soft); color: var(--ok); }

/* The invite pop-up after login */
.invite-modal form { text-align: center; }
.invite-modal p { color: var(--text); }
.invite-modal-gift { font-size: 2.6rem; line-height: 1; }
.invite-modal-code { font-size: .95rem; color: var(--muted) !important; }
.invite-modal-code strong { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--text); letter-spacing: .06em; }
.invite-modal-foot { font-size: .9rem; margin-top: 4px !important; }
.invite-modal .callout { text-align: left; margin: 0; }
@media (max-width: 599px) {
  .modal { margin: auto auto 0; max-width: 100vw; width: 100%; border-radius: 22px 22px 0 0; }
  .modal form { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Lists with buttons in each row (Admin → Sellers, Admin → Team): on phones and narrow screens the
   buttons go under the text, so names and emails keep the full width. */
body.app .row > div:first-child { min-width: 0; flex: 1 1 auto; }
@media (max-width: 1199px) {
  body.app .row:has(> .right.actions), body.app .row:has(> .task-controls) { flex-direction: column; align-items: stretch; gap: 10px; }
  body.app .row > .right.actions { text-align: left; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  body.app .row > .right.actions .btn { flex: 1 1 140px; margin: 0; }
  body.app .row > .right.actions form { flex: 1 1 140px; }
  body.app .row > .right.actions form .btn { width: 100%; }
  body.app .row > .task-controls { text-align: left; }
}

/* Deal safety check (check.html): Pidgin by default, English as an option */
.sc-lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.12); margin: 0 0 18px !important; }
.sc-lang-btn { font: inherit; font-weight: 600; font-size: .9rem; border: 0; border-radius: 999px; padding: 6px 16px; background: transparent; color: #F4F7FC; cursor: pointer; }
.sc-lang-btn.on { background: #F4F7FC; color: #0B1B3D; }
.sc-private { margin-top: 12px !important; font-size: .95rem !important; }
.sc-wrap { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.sc-card { border-radius: 20px; padding: 20px; }
.sc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.sc-mode { font: inherit; font-weight: 700; padding: 14px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.sc-mode.on { border-color: var(--navy); background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .sc-mode.on { background: #F4F7FC; color: #0B1B3D; border-color: #F4F7FC; } }
.sc-questions { list-style: none; padding: 0; margin: 12px 0; counter-reset: q; }
.sc-questions li { padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: q; }
.sc-questions li p { margin: 0 0 10px; font-weight: 500; }
.sc-questions li p::before { content: counter(q) ". "; color: var(--muted); }
.sc-answers { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-ans { font: inherit; font-size: .92rem; font-weight: 600; min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.sc-ans.on.sc-yes { background: #B42318; border-color: #B42318; color: #fff; }
.sc-ans.on.sc-no { background: var(--ok); border-color: var(--ok); color: #fff; }
.sc-ans.on.sc-unsure { background: var(--warn); border-color: var(--warn); color: #fff; }
.sc-paste { display: grid; gap: 4px; margin: 16px 0; }
.sc-paste small { color: var(--muted); }
.sc-paste textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); resize: vertical; }
.sc-go { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-res { border-radius: 20px; padding: 22px; border-top: 6px solid var(--ok); }
.sc-res.sc-mid { border-top-color: var(--warn); }
.sc-res.sc-high { border-top-color: #B42318; }
.sc-res h2 { font-size: 1.5rem; margin: 4px 0 8px; }
.sc-flags { margin: 0; font-weight: 700; color: var(--muted); }
.sc-meter { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-bottom: 14px; }
.sc-meter span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.sc-mid .sc-meter span { background: var(--warn); }
.sc-high .sc-meter span { background: #B42318; }
.sc-reasons { padding-left: 20px; margin: 6px 0 12px; }
.sc-reasons li { margin: 6px 0; }
.sc-msg { margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-msg mark { background: #FCE3DF; color: #8A1C12; border-radius: 4px; padding: 0 2px; }
@media (prefers-color-scheme: dark) { .sc-msg mark { background: #5A1E18; color: #FFD8D2; } }
.sc-safe { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--ok-soft); display: grid; gap: 8px; }
.sc-safe h3, .sc-safe p { margin: 0; }
.sc-safe .btn { margin: 0; }
.sc-disc { margin: 14px 0 0; }
.sc-thinking { display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 22px; }
.sc-thinking p { margin: 0; font-weight: 600; }
.sc-dots { display: inline-flex; gap: 5px; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); opacity: .3; }
@media (prefers-color-scheme: dark) { .sc-dots i { background: #F4F7FC; } }
@media (prefers-reduced-motion: no-preference) {
  .sc-dots i { animation: sc-dot 1s infinite ease-in-out; }
  .sc-dots i:nth-child(2) { animation-delay: .15s; } .sc-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes sc-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
  .sc-res { animation: sc-pop .35s ease-out both; }
  @keyframes sc-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
}
#sc-result { scroll-margin-top: 84px; }

/* Tiles inside a navy band (the "Delivery included" sections) */
.section.navy .tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #F4F7FC; }
.section.navy .tile h3 { color: #FFFFFF; }

/* Safety check: Wahala Meter, the character, money kept, word notes, Red Flag Bingo, editions */
.sc-edition { display: inline-block; margin: 0 0 10px !important; padding: 4px 12px; border-radius: 999px; background: #F4B740; color: #0B1B3D !important; font-weight: 700; font-size: .85rem !important; }
.sc-wahala { margin-bottom: 14px; }
.sc-wahala-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.sc-wahala-head strong { font-size: 1.6rem; letter-spacing: 0; color: var(--text); }
.sc-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.sc-segs i { height: 12px; border-radius: 4px; background: var(--bg); }
.sc-low .sc-segs i.on { background: var(--ok); } .sc-mid .sc-segs i.on { background: var(--warn); } .sc-high .sc-segs i.on { background: #B42318; }
.sc-wahala-label { margin: 6px 0 0; font-weight: 700; }
.sc-villain { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--warn-soft); }
.sc-v-face { font-size: 2rem; line-height: 1; }
.sc-villain strong { display: block; font-size: 1.1rem; }
.sc-villain span { color: var(--muted); font-size: .92rem; }
.sc-saved { font-weight: 700; padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.sc-season { font-style: italic; color: var(--muted); }
.sc-notes { margin: -6px 0 14px; padding-left: 20px; font-size: .92rem; }
.sc-notes li { margin: 4px 0; }
.sc-bingo { margin: 6px 0 4px; }
.sc-bingo-head { display: flex; justify-content: space-between; margin: 0 0 8px; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-grid span { min-height: 48px; display: grid; place-items: center; text-align: center; padding: 6px; border-radius: 10px; font-size: .78rem; font-weight: 600; background: var(--bg); color: var(--muted); }
.sc-grid span.on { background: #B42318; color: #fff; }
.sc-bingo-win { margin: 8px 0 0; font-weight: 800; color: #B42318; text-align: center; }
@media (prefers-color-scheme: dark) { .sc-bingo-win { color: #FF8A7A; } }

/* Drawn characters, confetti, challenge banner, weekly line (safety check) and Spot the Scam */
.tg-face { flex-shrink: 0; display: block; }
.tg-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2000; }
.sc-challenge { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #F4B740; color: #0B1B3D; font-weight: 600; }
.sc-challenge p { margin: 0; }
.sc-weekly { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .92rem !important; }
.sc-quiz-link { display: inline-block; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: #F4F7FC; color: #0B1B3D !important; font-weight: 700; text-decoration: none; }
.qz-faces { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.qz-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.qz-bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-bottom: 16px; }
.qz-bar span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
@media (prefers-color-scheme: dark) { .qz-bar span { background: #9DB9F5; } }
.qz-chat { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #E8F0E4; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .qz-chat { background: #0C2A22; } }
.qz-msg { margin: 0; max-width: 86%; padding: 8px 12px 10px; border-radius: 14px; background: #FFFFFF; color: #111; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.qz-msg small { display: block; font-size: .72rem; font-weight: 700; color: #0E7A4A; }
.qz-you { justify-self: end; background: #D9FDD3; }
.qz-you small { color: #2350B0; }
.qz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-answers .btn { margin: 0; }
.qz-scam { background: #B42318 !important; color: #fff !important; }
.qz-legit { background: var(--ok) !important; color: #fff !important; }
.qz-verdict { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.qz-feedback.ok .qz-verdict { color: var(--ok); }
.qz-feedback.no .qz-verdict { color: #B42318; }
@media (prefers-color-scheme: dark) { .qz-feedback.no .qz-verdict { color: #FF8A7A; } }
.qz-big { font-size: 4rem; font-weight: 800; margin: 0; line-height: 1; }
.qz-rank { font-size: 1.15rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .qz-card { animation: sc-pop .3s ease-out both; } }

/* ======================================================================== free tools as an app
   The deal safety check and Spot the Scam (area "tool"): the same app frame as the accounts, with a
   Check / Spot the Scam / TrustGap tab bar. The navy hero becomes the top card of the screen. */
body.app-tool main { max-width: 720px; padding: 14px 14px 28px; }
body.app-tool .page-hero { border-radius: 24px; padding: 22px 20px 20px; margin: 0 0 14px;
  background: radial-gradient(120% 140% at 100% 0%, #2350B0 0%, #0B1B3D 55%); box-shadow: var(--shadow); }
body.app-tool .page-hero .container { padding: 0; max-width: none; }
body.app-tool .page-hero h1 { font-size: 1.55rem; margin: 2px 0 6px; }
body.app-tool .page-hero p { font-size: .98rem; margin: 0 0 6px; }
body.app-tool .section { padding: 0; background: none; }
body.app-tool .section > .container { padding: 0; max-width: none; }
body.app-tool .sc-wrap { max-width: none; gap: 12px; }
body.app-tool .sc-card, body.app-tool .sc-res, body.app-tool .sc-thinking { border-radius: 22px; }
body.app-tool .sc-lang { margin-bottom: 12px !important; }
/* Questions as chunky tappable rows */
body.app-tool .sc-questions li { padding: 14px 0; }
body.app-tool .sc-ans { min-height: 46px; flex: 1 1 0; }
body.app-tool .sc-answers { display: grid; grid-template-columns: repeat(3, 1fr); }
/* The main button stays in reach on phones */
@media (max-width: 699px) {
  body.app-tool .sc-go { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
    background: var(--card); padding: 10px; margin: 0 -10px -10px; border-radius: 18px; box-shadow: 0 -8px 24px -12px rgba(11,27,61,.35); }
  body.app-tool .sc-go .btn { flex: 1; }
}
body.app-tool .qz-answers .btn { min-height: 58px; font-size: 1.05rem; }
body.app-tool .sc-quiz-link, body.app-tool .sc-weekly { margin-top: 4px; }
/* Spot the Scam: how to avoid it */
.qz-avoid { margin: 10px 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--ok-soft); }
.qz-avoid p { margin: 0 0 8px; }
.qz-avoid-head { font-weight: 800; color: var(--ok); }
.qz-shield { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--card); font-size: .82rem; font-weight: 700; }
/* Admin → Messages: KudiSMS credit */
.sms-big { font-size: 2rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.sms-test { margin: 0.75rem 0; } .sms-test .row { display: flex; gap: 0.5rem; margin-top: 0.25rem; } .sms-test input { flex: 1; min-width: 0; }
.sms-test-out { word-break: break-word; } .sms-test-out.ok { color: var(--ok, #0E7A4A); } .sms-test-out.error { color: var(--danger, #B42318); }

/* Pay by bank transfer (tracking page) */
.transfer-box { border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 16px; margin: 14px 0; background: var(--card); }
.transfer-box .eyebrow { margin: 0 0 8px; }
.tf-label { margin: 10px 0 2px; color: var(--muted); font-size: 0.85rem; }
.tf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tf-amount, .tf-number { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tf-number { letter-spacing: 0.06em; }
.tf-bank { margin: 6px 0 0; }
.tf-timer { margin: 12px 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.tf-timer strong { font-variant-numeric: tabular-nums; }
.tf-tips { margin: 8px 0 12px; padding-left: 18px; }
.tf-tips li { margin: 4px 0; }
.pay-switch { margin: 10px 0 0; text-align: center; }
.pay-alt { margin-top: 8px; }
.pay-review { border: 1.5px solid var(--warn); }
.pay-review .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Announcements (banners from Admin → Announce) */
.ann-wrap { display: grid; gap: 10px; margin: 0 0 14px; }
.ann { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: var(--radius); background: var(--info-soft); border-left: 4px solid var(--info); }
.ann-marketing { background: var(--warn-soft); border-left-color: #F4B740; }
.ann-icon { font-size: 1.3rem; line-height: 1.2; }
.ann-text { flex: 1; min-width: 0; }
.ann-text p { margin: 4px 0; white-space: pre-line; }
.ann-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; padding: 2px 6px; cursor: pointer; color: var(--muted); }
/* Admin → Announce */
.ann-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.ann-form .choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ann-preview { border: 1.5px solid var(--brand); }
.ann-preview .sms-sample { white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 0.9rem; }
.ann-history .row { align-items: flex-start; }

/* The seller's bell (notifications) */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--on-brand); cursor: pointer; }
.bell svg { width: 24px; height: 24px; }
.bell:hover, .bell:focus-visible { background: rgba(255, 255, 255, 0.12); }
.bell.has-new svg { animation: bell-ring 1.2s ease-in-out 1; transform-origin: 50% 10%; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F4B740; color: var(--navy); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--navy); }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .bell.has-new svg { animation: none; } }
dialog.inbox { width: min(520px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(11, 27, 61, 0.35); }
dialog.inbox::backdrop { background: rgba(11, 27, 61, 0.45); }
.inbox-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.inbox-head h2 { margin: 0; font-size: 1.15rem; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inbox-list li.unread { background: var(--info-soft); }
dialog.inbox > p { padding: 16px; }

/* Spot the Scam: play till you fail */
.qz-clock { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warn); }
.qz-clock.hurry { color: var(--danger); animation: qz-pulse 0.5s ease-in-out infinite alternate; }
.qz-timebar span { background: var(--warn); transition: width 0.2s linear; }
@keyframes qz-pulse { from { opacity: 1; } to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .qz-clock.hurry { animation: none; } .qz-timebar span { transition: none; } }

/* Newsletter pop-up (Is it safe? pages) */
dialog.nl-pop { width: min(460px, calc(100vw - 32px)); max-height: 92vh; padding: 20px; border: 0; border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(11, 27, 61, 0.35); }
dialog.nl-pop::backdrop { background: rgba(11, 27, 61, 0.5); }
dialog.nl-pop h2 { margin: 0 32px 6px 0; }
dialog.nl-pop .nl-x { position: absolute; top: 10px; right: 10px; }
dialog.nl-pop form { position: relative; }
dialog.nl-pop .choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
#nl-err:empty { display: none; }

/* Footer: Get the TrustGap app */
.app-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.app-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-btn:hover, .app-btn:focus-visible { background: rgba(255, 255, 255, 0.14); }
.app-btn.mine { border-color: #F4B740; }
.app-btn > span:first-child { font-size: 1.35rem; }
.app-btn small { display: block; font-size: 0.7rem; opacity: 0.75; line-height: 1.1; }
.foot-app-link { color: inherit; }
.is-installed .foot-app, .is-installed .foot-app-link { display: none; }
dialog.install-pop { width: min(440px, calc(100vw - 32px)); padding: 20px; border: 0; border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(11, 27, 61, 0.35); }
dialog.install-pop::backdrop { background: rgba(11, 27, 61, 0.5); }
dialog.install-pop h2 { margin: 10px 32px 10px 0; }
.install-icon { border-radius: 16px; }
.install-steps { padding-left: 20px; }
.install-steps li { margin: 8px 0; }
dialog.install-pop .nl-x { position: absolute; top: 10px; right: 10px; }
.app-buttons { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.app-btn > span:last-child { white-space: nowrap; }

/* Contact page */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid .form h2 { margin-top: 0; }
#contact-err:empty { display: none; }

/* Expected release (order pages): a countdown in Lagos time, or "held for review". */
.release-box { border: 1.5px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; background: var(--card); }
.release-box .eyebrow { margin: 0 0 6px; }
.release-box .rel-time { margin: 0; font-size: 1.15rem; }
.release-box .rel-left { margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.release-box.held { border-left-color: var(--warn); background: var(--warn-soft); }
.release-box p:last-child { margin-bottom: 0; }
.release-note { margin: 10px 0; }

/* Templates (seller) */
.template-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tpl-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--line); flex: none; display: block; }
.tpl-main { flex: 1 1 200px; min-width: 0; }
.tpl-actions { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Admin CRM */
.crm-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.crm-nav a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: inherit; font-weight: 500; background: var(--card); }
.crm-nav a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.crm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.crm-stats .crm-stat { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; }
.crm-stats .crm-stat span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.crm-overdue { color: var(--danger, #B42318); }
.crm-stats .crm-stat strong { display: block; font-size: 1.6rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.crm-stats .crm-stat small { color: var(--muted); }
.crm-stats .crm-stat.warn { border-left: 4px solid var(--warn); }
.funnel { display: grid; gap: 8px; margin: 6px 0 10px; }
.funnel-row { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.funnel-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.funnel-bar .fill { display: block; height: 100%; min-width: 3px; border-radius: 99px; background: var(--brand); }
.funnel-bar .fill.ok { background: var(--ok); }
.funnel-bar .fill.warn { background: var(--warn); }
.funnel-bar .fill.muted { background: var(--muted); }
.funnel-n { text-align: right; font-variant-numeric: tabular-nums; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.crm-filters input[type=search] { flex: 1 1 240px; }
.crm-filters select { flex: 0 1 auto; width: auto; }
.badge.tag { background: var(--warn-soft); color: var(--warn); }
.crm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.crm-facts .eyebrow { margin: 0 0 4px; }
.crm-tags { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.crm-tags label { flex: 1 1 240px; }
.crm-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.crm-columns details { margin: 6px 0 10px; }
.crm-columns details form { margin-top: 8px; }
.crm-timeline { list-style: none; padding: 0; margin: 0; }
.crm-timeline li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.crm-timeline .t-icon { width: 24px; flex: none; text-align: center; }
.crm-group summary { cursor: pointer; }
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.board-col { flex: 0 0 240px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; scroll-snap-align: start; }
.board-col h2 { font-size: 1rem; margin: 0 0 4px; }
.board-card { display: block; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; background: var(--bg, transparent); }
.board-card:hover { border-color: var(--brand); }
.crm-filters input, .crm-filters select, .crm-tags input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: inherit; min-height: 40px; }
.crm-tags input { width: 100%; margin-top: 4px; }
