/* Fonts come from this site (fonts/), not from Google: faster, works where Google is blocked, and no visitor data goes to Google. Licences: fonts/LICENSE-*.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #0d1b3d; --muted: #55648a; --blue-900: #082a8f; --blue-700: #0b3fd1; --blue-600: #1557f5; --blue-500: #2f7bff; --sky: #2cb7ff; --cyan: #17d1ff;
  --blue-100: #dbe9ff; --blue-50: #eef5ff; --bg: #f3f8ff; --card: #fff; --line: #d9e5fb; --pop: #ffb020; --pop-soft: #fff4d9;
  --ok: #0f9d58; --ok-soft: #e0f7ea; --bad: #e5484d; --bad-soft: #ffe8e8; --warn: #a15c00; --warn-soft: #fff1d6; --info: #1557f5; --info-soft: #e6efff;
  --radius: 22px; --shadow: 0 2px 4px rgba(11,63,209,.05), 0 12px 28px rgba(11,63,209,.10);
  --grad: linear-gradient(135deg, #0b3fd1 0%, #2f7bff 55%, #2cb7ff 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); background-image: radial-gradient(900px 400px at 100% -10%, #dbeaff 0, transparent 60%), radial-gradient(700px 360px at -10% 20%, #e4f6ff 0, transparent 60%); background-attachment: fixed; }
a { color: var(--blue-600); }
h1, h2, h3, .brand, .kpi { font-family: "DM Sans", "Inter", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); font-weight: 800; } h2 { font-size: 1.35rem; font-weight: 750; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .between { justify-content: space-between; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* demo bar (not part of the real site) */
.demobar { background: #0a1740; color: #dfe8ff; font-size: .8rem; padding: 6px 0; position: sticky; top: 0; z-index: 60; }
.demobar .wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.demobar b { color: var(--pop); margin-right: 4px; }
.demobar button { background: #18266a; color: #dfe8ff; border: 1px solid #34479b; border-radius: 999px; padding: 4px 11px; font: inherit; cursor: pointer; }
.demobar button.on { background: var(--pop); color: #0a1740; border-color: var(--pop); font-weight: 700; }

header.top { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 32px; z-index: 40; }
header.top .wrap { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.15; }
.logo { width: 54px; height: 54px; font-size: 1.5rem; border-radius: 16px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 6px 16px rgba(21,87,245,.35); }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.tabs a { padding: 11px 19px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.02rem; position: relative; }
nav.tabs a.on { background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(21,87,245,.28); } nav.tabs a:not(.on):hover { background: var(--blue-50); color: var(--blue-700); }
.dotc { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pop); color: #0a1740; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

main { padding: 22px 0 90px; min-height: 60vh; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(11,63,209,.06), 0 18px 36px rgba(11,63,209,.16); }
.card.flat { box-shadow: none; } .card h2, .card h3 { margin-top: 0; }
.card.blue { background: var(--grad); color: #fff; border: 0; } .card.blue .muted { color: #d6e6ff; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--blue-50); margin-bottom: 8px; }
.ico.b2 { background: #e0f6ff; } .ico.b3 { background: #fff1d6; } .ico.b4 { background: #e0f7ea; }
.banner { border-radius: 18px; padding: 18px 22px; margin: 0 0 18px; border: 1px solid; border-left-width: 7px; font-size: 1.08rem; font-weight: 500; line-height: 1.5; }
.banner.info { background: var(--info-soft); border-color: #bcd2ff; color: #0e3a9e; } .banner.warn { background: var(--warn-soft); border-color: #f0cf8f; color: var(--warn); }
.banner.ok { background: var(--ok-soft); border-color: #a9e5c3; color: #0b6b3b; } .banner.bad { background: var(--bad-soft); border-color: #ffc0c2; color: #a82a2f; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 8px 18px rgba(21,87,245,.28); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--blue-700); border: 1.5px solid var(--blue-100); box-shadow: none; } .btn.ghost:hover { background: var(--blue-50); }
.btn.gold { background: linear-gradient(135deg, #ffb020, #ff8a00); color: #3a2200; box-shadow: 0 8px 18px rgba(255,140,0,.32); } .btn.danger { background: linear-gradient(135deg, #e5484d, #c92a3a); box-shadow: 0 8px 18px rgba(229,72,77,.28); }
.btn.small { min-height: 34px; padding: 5px 13px; font-size: .86rem; border-radius: 11px; } .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); } .b-bad { background: var(--bad-soft); color: #c0282d; } .b-warn { background: var(--warn-soft); color: var(--warn); }
.b-info { background: var(--info-soft); color: var(--blue-700); } .b-gray { background: #edf0f7; color: #44507a; } .b-gold { background: var(--pop-soft); color: #8a5a00; }

label.f { display: block; font-weight: 650; margin: 12px 0 4px; font-size: .94rem; }
input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=date], select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid #c5d5f5; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 96px; } input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue-600); flex: none; margin-top: 2px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #8fb7ff; outline-offset: 1px; border-color: var(--blue-500); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.help { font-size: .82rem; color: var(--blue-600); background: none; border: 0; cursor: pointer; padding: 0; font-weight: 650; }

/* hero */
.hero { background: radial-gradient(900px 500px at 85% -10%, #5ec8ff 0, transparent 60%), radial-gradient(700px 500px at -10% 110%, #0a3bd0 0, transparent 60%), linear-gradient(135deg, #0b3fd1 0%, #2f7bff 60%, #2cb7ff 100%); color: #fff; border-radius: 34px; padding: 64px 40px; position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(21,87,245,.30); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); animation: float 9s ease-in-out infinite; }
.hero::before { width: 320px; height: 320px; right: -80px; top: -90px; } .hero::after { width: 200px; height: 200px; left: 52%; bottom: -80px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(18px) scale(1.05); } }
.hero > * { position: relative; z-index: 1; } .hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.04; margin: 14px 0 18px; } .hero p.lead { max-width: 560px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.5; opacity: .97; margin-bottom: 26px; }
.hero .btn { background: #fff; color: var(--blue-700); box-shadow: 0 10px 22px rgba(0,0,40,.25); } .hero .btn.gold { background: linear-gradient(135deg, #ffb020, #ff8a00); color: #3a2200; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.15fr 1fr; align-items: center; } .phone { display: none; }
@media (min-width: 860px) { .phone { display: block; } }
.phone { width: 230px; margin: 0 auto; background: #0a1740; border-radius: 34px; padding: 10px; box-shadow: 0 24px 50px rgba(0,0,40,.4); transform: rotate(4deg); }
.phone .screen { background: #fff; color: var(--ink); border-radius: 26px; padding: 14px 12px; min-height: 300px; font-size: .78rem; }
.phone .pbar { height: 8px; border-radius: 4px; background: var(--blue-100); margin: 6px 0; overflow: hidden; } .phone .pbar i { display: block; height: 100%; background: var(--grad); }
.phone .bub { background: var(--blue-50); border-radius: 12px; padding: 7px 9px; margin: 6px 0; } .phone .bub.me { background: var(--grad); color: #fff; margin-left: 24px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 22px; }
.stats > div { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; padding: 12px 14px; font-size: .9rem; backdrop-filter: blur(6px); }
.stats b { display: block; font-size: 1.3rem; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps > div { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.steps > div::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 8px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 8px 0 8px 42px; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: var(--blue-100); }
.timeline li:last-child::before { bottom: 50%; } .timeline li:first-child::before { top: 50%; }
.timeline .dot { position: absolute; left: 2px; top: 9px; width: 23px; height: 23px; border-radius: 50%; background: #fff; border: 3px solid #bfd1f5; display: grid; place-items: center; font-size: 12px; color: #fff; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); } .timeline li.now .dot { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 5px rgba(21,87,245,.18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(21,87,245,.06); } } .timeline li.now b { color: var(--blue-700); } .timeline li.todo { opacity: .55; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } tbody tr:hover { background: var(--blue-50); }
.scroll { overflow-x: auto; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.kpi { font-size: 1.9rem; font-weight: 850; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.kpi small { display: block; font-size: .8rem; font-weight: 650; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 4px; }
.funnel .fr { display: grid; grid-template-columns: 150px 1fr 30px; gap: 8px; align-items: center; margin: 6px 0; font-size: .86rem; }
.funnel .bar { height: 16px; background: var(--blue-50); border-radius: 8px; overflow: hidden; } .funnel .bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .6s; min-width: 2px; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .doc:last-child { border-bottom: 0; }
.doc .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.proof { border-left: 5px solid var(--ok); background: #f7fcfa; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.proof .vc { background: var(--blue-50); border-radius: 6px; padding: 2px 7px; }
.chat { display: grid; gap: 8px; } .msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: .94rem; white-space: pre-wrap; }
.msg.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; } .msg.out { background: var(--grad); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; } .msg.out .muted { color: #dbe8ff; }
.wm { position: relative; } .wm::after { content: "VIEW ONLY · MINISTRY"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; letter-spacing: .2em; color: rgba(21,87,245,.07); transform: rotate(-12deg); pointer-events: none; font-size: 1.6rem; }
.overlay { position: fixed; inset: 0; background: rgba(8,20,60,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 22px; max-width: 540px; width: 100%; padding: 22px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 70px rgba(0,0,40,.4); animation: pop .18s ease-out; } @keyframes pop { from { transform: scale(.96); opacity: 0; } }
.toast { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); background: #0a1740; color: #fff; padding: 10px 16px; border-radius: 14px; z-index: 300; box-shadow: var(--shadow); max-width: 92vw; font-size: .92rem; animation: pop .2s; }
footer { border-top: 1px solid var(--line); padding: 22px 0 90px; color: var(--muted); font-size: .86rem; background: #fff; }
footer .contact { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; color: var(--ink); font-size: .95rem; }
.ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; color: var(--blue-700); background: conic-gradient(var(--blue-600) calc(var(--p) * 1%), #dfe9ff 0); position: relative; flex: none; }
.ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; } .ring span { position: relative; z-index: 1; }
.pbar2 { height: 10px; border-radius: 6px; background: var(--blue-100); overflow: hidden; } .pbar2 i { display: block; height: 100%; background: var(--grad); }

/* AI helper */
.fab { position: fixed; right: 16px; bottom: 80px; z-index: 70; border: 0; border-radius: 999px; padding: 12px 18px 12px 12px; background: var(--grad); color: #fff; font: inherit; font-weight: 750; display: flex; gap: 8px; align-items: center; cursor: pointer; box-shadow: 0 14px 30px rgba(21,87,245,.45); animation: bob 3s ease-in-out infinite; }
.fab .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; } @keyframes bob { 50% { transform: translateY(-4px); } }
.aipanel { position: fixed; right: 16px; bottom: 80px; z-index: 90; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 150px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,50,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: pop .18s; }
.aihead { background: var(--grad); color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; } .aihead .av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.aihead button { margin-left: auto; background: rgba(255,255,255,.2); border: 0; color: #fff; border-radius: 10px; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.aibody { flex: 1; overflow-y: auto; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .chip { border: 1.5px solid var(--blue-100); background: #fff; color: var(--blue-700); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; } .chip:hover { background: var(--blue-50); }
.aifoot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; } .aifoot input { min-height: 42px; } .aifoot .btn { min-height: 42px; padding: 8px 14px; }
.aitag { font-size: .7rem; padding: 6px 12px; background: #fff8e6; color: #7a5200; border-bottom: 1px solid #f3dca4; }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; background: #9bb6ee; border-radius: 50%; animation: dots 1s infinite; } .typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; } @keyframes dots { 50% { transform: translateY(-4px); } }

/* mobile bottom tab bar */
.bottomnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; padding: 4px 0; border-radius: 12px; position: relative; } .bottomnav a i { display: block; font-style: normal; font-size: 1.3rem; }
.bottomnav a.on { color: var(--blue-700); background: var(--blue-50); }
.stepper { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; } .stepper a { flex: 1 1 90px; text-align: center; padding: 8px 6px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 700; } .stepper a.on { background: var(--grad); color: #fff; border-color: transparent; } .stepper a.done { color: var(--ok); border-color: #a9e5c3; }
.receipt { border: 2px dashed #a9c3f7; border-radius: 16px; padding: 16px; background: #fbfdff; } .receipt table td:last-child, .receipt table th:last-child { text-align: right; }
/* live camera */
.camwrap { position: relative; background: #0a1740; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; margin: 8px 0 12px; }
.camwrap video { width: 100%; height: 100%; object-fit: cover; display: block; } .camwrap video.mirror { transform: scaleX(-1); }
.camwrap .guide { position: absolute; inset: 9% 7%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(5,15,50,.35); pointer-events: none; }
.camwrap .guide.oval { inset: 6% 24%; border-radius: 50%; }
.camstat { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-weight: 750; font-size: .9rem; padding: 6px 10px; border-radius: 10px; background: rgba(10,23,64,.78); color: #fff; }
.camstat.ok { background: #0f9d58; } .camstat.bad { background: #e5484d; } .camstat.warn { background: #b86e00; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; } nav.tabs.applicant { display: none; } .bottomnav.show { display: flex; } header.top { top: 0; position: static; }
  .demobar { position: static; } .msg { max-width: 92%; } .funnel .fr { grid-template-columns: 110px 1fr 26px; } .aipanel { bottom: 70px; right: 8px; height: calc(100vh - 120px); } .fab { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .demobar, header.top, .btn, footer, .fab, .aipanel, .bottomnav, .toast { display: none !important; } body { background: #fff; }
  body.pr main, body.pr #app { display: none !important; } body.pr .overlay { position: static; background: none; padding: 0; display: block; } body.pr .modal { box-shadow: none; max-height: none; } }

/* header actions, announcement bar, large buttons, sign-in card */
.hdr-actions { display: flex; gap: 10px; margin-left: auto; } nav.tabs + .hdr-actions { margin-left: 0; }
.hdr-actions .btn { min-height: 48px; padding: 10px 26px; font-size: 1.02rem; }
.announce { background: linear-gradient(90deg, #07246e, #0b3fd1 50%, #1688ff); color: #fff; font-weight: 700; font-size: 1rem; }
.announce .wrap { display: flex; gap: 8px 26px; flex-wrap: wrap; justify-content: center; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.btn.lg { min-height: 60px; padding: 14px 32px; font-size: 1.15rem; border-radius: 18px; }
.btn.ghostw { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: none; } .btn.ghostw:hover { background: rgba(255,255,255,.25); }
.pill { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .95rem; backdrop-filter: blur(6px); }
.signin { background: #fff; color: var(--ink); border-radius: 28px; padding: 28px; box-shadow: 0 30px 70px rgba(0,10,60,.35); }
.signin h2 { font-size: 1.6rem; margin: 0 0 4px; } .signin .muted { margin-bottom: 14px; }
.seg { display: flex; gap: 4px; background: var(--blue-50); border-radius: 16px; padding: 5px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: none; padding: 11px 6px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--blue-700); box-shadow: 0 2px 8px rgba(11,63,209,.18); }
.signin .btn { width: 100%; min-height: 54px; font-size: 1.08rem; }
.signin .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 14px 0; } .signin .or::before, .signin .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero .stats > div { font-size: .98rem; } .hero .stats b { font-size: 1.5rem; font-family: "DM Sans", sans-serif; }
@media (max-width: 860px) { .hero { padding: 36px 20px; border-radius: 26px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hdr-actions { width: 100%; } .hdr-actions .btn { flex: 1; } nav.tabs { order: 3; } }

@media (max-width: 600px) { .announce { font-size: .82rem; } .announce .wrap { gap: 2px 14px; padding-top: 9px; padding-bottom: 9px; } .announce span:nth-child(3) { display: none; }
  header.top .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; } .brand .small { display: none; } .logo { width: 46px; height: 46px; } .hdr-actions .btn { min-height: 46px; }
  nav.tabs a { padding: 8px 12px; font-size: .95rem; } .hero h1 { font-size: 2.3rem; } .signin { padding: 22px; } }

.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: "DM Sans", sans-serif; font-weight: 800; flex: none; }
input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue-600); flex: none; margin-top: 2px; }

/* complaints, my record, voice calls, evidence pack */
.grv { border-left-color: var(--pop); }
.grv .reply { background: var(--ok-soft); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
details.conv { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.conv summary { cursor: pointer; list-style: none; }
details.conv summary::-webkit-details-marker { display: none; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ok-soft); border-bottom: 1px solid var(--line); }
.vbar .btn { margin-left: auto; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,157,88,.6); } 100% { box-shadow: 0 0 0 12px rgba(15,157,88,0); } }
.evid h3 { margin: 14px 0 6px; font-size: .98rem; }
.evid table td:first-child { width: 34%; }
.bottomnav a { min-width: 0; }
@media (max-width: 420px) { .bottomnav a { font-size: .62rem; } .bottomnav a i { font-size: 1.15rem; } }
@media print { details.conv summary .ell { display: none; } .proof { break-inside: avoid; } }

/* cookie banner: Accept and Decline are equally easy */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #0a1740; color: #eef3ff; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,40,.25); }
.consent a { color: #ffd27a; }
.consent .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 420px; font-size: .92rem; }
.consent .btn { min-width: 120px; background: #fff; color: #0a1740; }

/* use my phone: QR code and the phone capture page */
.hand { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.hand .qr { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.hand .qr img { display: block; width: 220px; height: 220px; margin: 0 auto 6px; }
.holist { list-style: none; padding: 0; margin: 6px 0; } .holist li { padding: 4px 0; }
.phonepage .doc .btn { min-height: 48px; }
@media (max-width: 640px) { .hand { grid-template-columns: 1fr; } .hand .qr img { width: 180px; height: 180px; } }

/* ratings, reviews and the trust strip */
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; } .stars .off { color: #d5dbe6; }
.rate { border: 2px solid #ffd27a; background: linear-gradient(180deg, #fffaf0, #fff); margin-bottom: 16px; }
.rate .btn { min-width: 64px; }
.review .reply { background: var(--blue-50); border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 22px; }
.trust > * { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.trust b { font-family: "DM Sans", "Inter", sans-serif; font-size: 1.35rem; color: var(--ink); } .trust span { font-size: .86rem; color: var(--muted); }
.dist .bar { display: inline-block; width: 120px; height: 8px; background: var(--blue-50); border-radius: 6px; vertical-align: middle; overflow: hidden; } .dist .bar i { display: block; height: 100%; background: #f5a623; }
/* brand logo (emblem) in the header */
.logo-img { height: 54px; width: auto; display: block; border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .logo-img { height: 44px; } }

/* ---- Ministry of Labour pages: darker, official (deep green-black with gold) ---- */
body.mtheme { --ink: #e8efe9; --muted: #a3b5a9; --bg: #0c1410; --card: #15211b; --line: #2b3d33; --blue-50: #1d2c24; --blue-100: #2b3d33; --blue-600: #e3b341; --blue-700: #e3b341; --blue-500: #d4a52a;
  --grad: linear-gradient(135deg, #0f5132 0%, #127a45 100%); --shadow: 0 2px 6px rgba(0,0,0,.35); --info: #e3b341; --info-soft: #1f2a1f;
  background: #0c1410; background-image: radial-gradient(900px 420px at 100% -10%, #13301f 0, transparent 60%); color: var(--ink); }
body.mtheme a { color: #e3b341; }
body.mtheme header.top { background: #08100c; border-bottom: 3px solid #d4a52a; top: 0; }
body.mtheme .brand { color: #f3f6f2; }
body.mtheme nav.tabs a { color: #dfe8e1; } body.mtheme nav.tabs a.on { background: #d4a52a; color: #0c1410; box-shadow: none; } body.mtheme nav.tabs a:not(.on):hover { background: #1d2c24; color: #f0c75a; }
body.mtheme .btn { background: linear-gradient(135deg, #0f5132, #127a45); color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.4); border: 1px solid #1d8f53; }
body.mtheme .btn.ghost { background: transparent; color: #e3b341; border: 1.5px solid #d4a52a; } body.mtheme .btn.ghost:hover { background: #1d2c24; }
body.mtheme input[type=text], body.mtheme input[type=tel], body.mtheme input[type=number], body.mtheme input[type=email], body.mtheme input[type=password], body.mtheme input[type=date], body.mtheme select, body.mtheme textarea { background: #0f1a14; color: #e8efe9; border-color: #35503f; }
body.mtheme input[type=file] { color: #a3b5a9; }
body.mtheme .banner { background: #17251d; color: #e8efe9; border-color: #2f4a3a; border-left-color: #d4a52a; }
body.mtheme .banner.ok { border-left-color: #2fb36b; } body.mtheme .banner.bad { border-left-color: #e5484d; } body.mtheme .banner.warn { border-left-color: #e3b341; }
body.mtheme tbody tr:hover { background: #1b2a22; } body.mtheme th { color: #a3b5a9; } body.mtheme td, body.mtheme th { border-color: #2b3d33; }
body.mtheme footer { background: #08100c; color: #a3b5a9; border-top-color: #2b3d33; }
body.mtheme .announce { display: none; }
body.mtheme .badge.b-gray { background: #24332b; color: #c9d6cd; } body.mtheme .badge.b-info { background: #2c2a17; color: #f0c75a; }
body.mtheme .mcard { border-top: 4px solid #d4a52a; }
.mhead .brand { gap: 12px; } .mcrest { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #0f5132; color: #f0c75a; border: 2px solid #d4a52a; }
.mkicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: #e3b341; margin: 0 0 6px; }
.demobar:empty { display: none; }
body.mtheme .kpi { background: linear-gradient(135deg, #f0c75a, #d4a52a); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.mtheme .b-ok { background: #123d26; color: #7ee2a8; } body.mtheme .b-warn { background: #3a2e0e; color: #f0c75a; } body.mtheme .b-bad { background: #3d1416; color: #ff9da0; }
body.mtheme .funnel .bar { background: #24332b; } body.mtheme .proof { background: #17251d; } body.mtheme .proof .vc { background: #24332b; } body.mtheme .doc { border-color: #2b3d33; }
body.mtheme .card.flat { background: #121c17; }
/* profile: photo at the top and the voice introduction */
.pcard { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pavatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(11,63,209,.18); display: block; }
.pavatar.pempty { display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 2.2rem "DM Sans", sans-serif; }
.pbody { flex: 1; min-width: 240px; } .pvoice { display: flex; flex-direction: column; gap: 4px; } .pvoice audio { width: 100%; max-width: 420px; height: 40px; }
@media (max-width: 640px) { .pcard { flex-direction: column; text-align: center; } .pcard .row { justify-content: center; } .pvoice { align-items: center; } }
/* language switch (public and applicant pages) */
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; background: #fff; }
.langsw button { border: 0; background: transparent; padding: 8px 12px; min-height: 40px; font: 600 .9rem Inter, system-ui, sans-serif; color: var(--ink, #1f2937); cursor: pointer; }
.langsw button + button { border-left: 1px solid var(--line); }
.langsw button.on { background: #0b3d91; color: #fff; }
.langsw + .hdr-actions, .langsw + .btn { margin-left: auto; }
nav.tabs + .langsw { margin-left: 0; }
@media (max-width: 860px) { .langsw { order: 2; } }
/* password with a small Show/Hide inside the box (every sign-in page) */
.pwbox { position: relative; }
.pwbox input { width: 100%; padding-right: 76px; }
.pwshow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue-600, #1d4ed8); font: 600 .85rem Inter, system-ui, sans-serif; padding: 6px 10px; min-height: 32px; border-radius: 8px; cursor: pointer; }
.pwshow:hover, .pwshow:focus-visible { background: rgba(29,78,216,.08); }
body.mtheme .pwshow { color: #d4a52a; }
/* sign-up: which path */
.trackpick { border: 0; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; }
.trackpick legend { padding: 0; margin-bottom: 8px; }
.trackpick .opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #c5d5f5; border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; }
.trackpick .opt:has(input:checked) { border-color: var(--blue-600, #1d4ed8); background: #f1f6ff; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.trackpick input { margin-top: 4px; }
/* home: two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.paths .card h3 { margin-top: 6px; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.sectors span { background: #eef4ff; color: #0b3d91; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
/* form: choose several (countries / areas) */
fieldset.multi { border: 0; padding: 0; margin: 14px 0 0; }
fieldset.multi legend { padding: 0; }
.multigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mopt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #c5d5f5; border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; }
.mopt:has(input:checked) { border-color: var(--blue-600, #1d4ed8); background: #f1f6ff; }
.mopt input { margin-top: 3px; }
.mopt .avail { color: #0f7a3d; font-weight: 600; }
@media (max-width: 600px) { .multigrid { grid-template-columns: 1fr; } }
/* home: "What brings you here?" */
.whoask { font-weight: 700; margin: 4px 0 10px; opacity: .95; font-size: 1.05rem; }
.who { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; max-width: 660px; }
.whocard { display: flex; flex-direction: column; gap: 3px; justify-content: center; min-height: 92px; padding: 16px 20px; border-radius: 20px; text-decoration: none; }
.whocard b { font-family: "DM Sans", sans-serif; font-size: 1.3rem; line-height: 1.2; } .whocard span { font-size: 1rem; opacity: .92; }
.whocard.job { background: linear-gradient(135deg, #ffb020, #ff8a00); color: #3a2200; box-shadow: 0 12px 26px rgba(255,140,0,.38); }
.whocard.emp { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.75); }
.whocard.emp:hover { background: rgba(255,255,255,.26); } .whocard.job:hover { filter: brightness(1.04); transform: translateY(-1px); }
@media (max-width: 600px) { .who { grid-template-columns: 1fr; } .whocard { min-height: 84px; } }
/* home hero: shorter, so the two choices show on the first screen; header on one row */
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; margin: 12px 0 14px; }
.hero p.lead { margin-top: 18px; }
.hdr-actions .btn { min-height: 44px; padding: 8px 20px; font-size: .98rem; }
header.top .wrap { gap: 14px; }
nav.tabs a { padding: 8px 10px; }
@media (min-width: 1000px) { header.top .wrap { flex-wrap: nowrap; } .brand .small { font-size: .78rem; } }
.whocard b { font-size: 1.08rem; } .whocard { padding: 14px 16px; }

/* ---- phone layout pass (29 Oct 2026): short header, form and next step first, stacked document cards, smaller Hana button ---- */
.signin-m { display: none; }
.needbox { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; margin: 10px 0 4px; }
.needbox summary { cursor: pointer; font-weight: 700; padding: 12px 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 46px; align-items: center; }
.needbox summary::-webkit-details-marker { display: none; }
.needbox summary::after { content: "▾"; color: var(--blue-600); } .needbox[open] summary::after { content: "▴"; }
.needbox .needin { padding: 0 14px 12px; }
.needbox ul { margin: 6px 0 8px; padding-left: 20px; } .needbox li { margin: 3px 0; }
.testnote { background: var(--warn-soft); border: 1px solid #f0cf8f; border-radius: 12px; color: var(--warn); padding: 9px 12px; font-size: .88rem; line-height: 1.4; margin: 10px 0; }
.pwhint { font-weight: 500; color: var(--muted); font-size: .85rem; }
details.docmore { margin-top: 4px; } details.docmore summary { cursor: pointer; color: var(--blue-600); font-weight: 650; font-size: .88rem; list-style: none; padding: 6px 0; min-height: 36px; display: flex; align-items: center; }
details.docmore summary::-webkit-details-marker { display: none; } details.docmore summary::before { content: "＋ "; white-space: pre; } details.docmore[open] summary::before { content: "－ "; }
@media (max-width: 600px) {
  .announce { display: none; }
  header.top .wrap { gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  header.top .brand { flex: 1 1 0; min-width: 0; font-size: .86rem; gap: 8px; line-height: 1.2; } .logo-img { height: 38px; }
  .langsw { margin-left: 0; order: 2; } .langsw button { min-height: 36px; padding: 4px 9px; font-size: .82rem; }
  header.top .wrap > .btn { order: 2; min-height: 38px; padding: 6px 12px; font-size: .88rem; border-radius: 12px; }
  nav.tabs.pub { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.tabs.pub::-webkit-scrollbar { display: none; }
  nav.tabs.pub a { white-space: nowrap; padding: 7px 13px; font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; flex: none; background: var(--blue-50); }
  nav.tabs.pub a.signin-m { display: inline-flex; margin-left: auto; background: #fff; border: 1.5px solid var(--blue-100); color: var(--blue-700); }
  .hdr-actions { display: none; }
  main { padding-top: 14px; }
  .card { padding: 16px; border-radius: 18px; } .banner { padding: 12px 14px; font-size: .96rem; border-radius: 14px; margin-bottom: 14px; }
  /* document and list rows: words on top, buttons underneath, big enough to tap */
  .doc { grid-template-columns: 1fr; }
  .doc .right { text-align: left; } .doc .right .row { justify-content: flex-start !important; }
  .doc .right .btn.small { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
  .fab { bottom: 74px; right: 10px; padding: 7px 14px 7px 7px; font-size: .9rem; gap: 6px; animation: none; box-shadow: 0 8px 18px rgba(21,87,245,.4); } .fab .av { width: 28px; height: 28px; font-size: .95rem; }
}
@media (max-width: 600px) { .trackpick { gap: 8px; } .trackpick .opt { padding: 9px 12px; gap: 10px; } .trackpick .opt .small { font-size: .84rem; line-height: 1.35; } .trackpick legend { margin-bottom: 4px; } }
@media (max-width: 600px) { nav.tabs.pub { gap: 5px; } nav.tabs.pub a { padding: 7px 10px; font-size: .88rem; } }
@media (max-width: 600px) { header.top.appl .brand > span { display: none; } header.top.appl .brand { flex: 1 1 auto; } }
@media (max-width: 600px) { .hello { flex-wrap: nowrap; } .hello h1 { margin-bottom: 4px; } .hello p { font-size: .9rem; } .hello .ring { width: 62px; height: 62px; font-size: .9rem; } .hello .ring::after { inset: 7px; } }
@media (max-width: 600px) { .deskonly { display: none !important; } }   /* "use my phone" is for people on a computer */
@media (max-width: 600px) { header.top .wrap { padding-left: 12px; padding-right: 12px; } nav.tabs.pub { gap: 4px; } nav.tabs.pub a { padding: 7px 9px; font-size: .86rem; } }
