:root {
  --navy: #1B3759;
  --navy-deep: #13273F;
  --ice: #A4CAE5;
  --ice-light: #E5F0F7;
  --danger: #C0392B;
  --ok: #1D9E75;
  --ink: #22303E;
  --muted: #5F6E7D;
}
* { box-sizing: border-box; margin: 0; }
body {
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #F4F7FA;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}
.brand { display: flex; gap: 10px; align-items: center; font-size: 18px; }
main { flex: 1; padding: 16px; max-width: 560px; width: 100%; margin: 0 auto; }
footer {
  display: flex; justify-content: space-between;
  padding: 10px 16px; font-size: 12px; color: var(--muted);
}
footer a { color: var(--navy); }

.card {
  background: #fff;
  border: 1px solid #D7E2EC;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

.pill {
  font-size: 11px; font-weight: 600; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 999px;
}
.pill.ok { background: #DCF2E9; color: #0F6E56; }
.pill.bad { background: #FBE3E0; color: var(--danger); }
.pill.warn { background: #FAEEDA; color: #854F0B; }
.pill.dim { background: var(--ice-light); color: var(--navy); }

input, select, textarea, button {
  font: inherit;
  border: 1px solid #C4D3E0;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 70px; }
label { font-size: 13px; color: var(--muted); display: block; margin: 10px 0 4px; }
button {
  background: var(--navy); color: #fff; border: none;
  font-weight: 600; cursor: pointer; margin-top: 14px;
}
button.secondary { background: var(--ice-light); color: var(--navy); }
button.mini { width: auto; padding: 6px 10px; font-size: 12px; margin-top: 0; background: var(--ice-light); color: var(--navy); }
button.ghost { background: var(--ice-light); color: var(--navy); }
button:active { transform: scale(.99); }

.bigtemp {
  font-size: 40px; text-align: center; font-weight: 700;
  color: var(--navy); letter-spacing: 1px;
}
.band { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }

.entry {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 2px; border-bottom: 1px solid #EDF2F7;
  font-size: 14px; align-items: baseline;
}
.entry:last-child { border-bottom: none; }
.entry .val { font-weight: 700; min-width: 64px; }
.entry .val.exc { color: var(--danger); }
.entry .meta { color: var(--muted); font-size: 12px; text-align: right; }
.note { font-size: 12px; color: var(--muted); padding: 0 2px 8px; border-bottom: 1px solid #EDF2F7; }
.note b { color: #854F0B; }

.qr { display: block; margin: 10px auto 0; width: 150px; border: 1px solid #EDF2F7; border-radius: 8px; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.excbox { background: #FBE3E0; border: 1px solid #F0B9B1; border-radius: 8px; padding: 12px; margin-top: 12px; }
.excbox b { color: var(--danger); }
h1.page { font-size: 20px; color: var(--navy); margin: 4px 0 14px; }
.assetlink { text-decoration: none; color: inherit; display: block; }

/* --- nav --- */
#nav { background: #fff; border-bottom: 1px solid #D7E2EC; }
.navwrap { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.navlinks { display: flex; gap: 4px; }
.navlinks a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--navy);
  font-size: 14px; font-weight: 600; }
.navlinks a.on { background: var(--ice-light); }
.navuser { display: flex; align-items: center; gap: 10px; font-size: 12px; }
button.link, .link { background: none; border: none; color: var(--danger); width: auto; padding: 4px;
  font-weight: 600; font-size: 12px; cursor: pointer; margin: 0; }

/* --- tables --- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px;
  padding: 6px 8px; border-bottom: 1px solid #EDF2F7; }
.tbl td { padding: 8px; border-bottom: 1px solid #F2F6FA; }
.tbl tr.on td { background: var(--ice-light); }

/* --- stat tiles --- */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--ice-light); border-radius: 10px; padding: 12px; text-align: center; }
.statnum { font-size: 24px; font-weight: 700; color: var(--navy); }
a { color: var(--navy); }

/* real KELZIX logo on a white badge (navy mark on navy header) */
.logobadge { background:#fff; border-radius:7px; padding:3px; display:inline-flex; align-items:center; }
.logobadge img { display:block; }
.brand { align-items:center; }

/* login / signup brand block (navy logo on light page) */
.authbrand { text-align:center; margin: 24px 0 8px; }
.authbrand img { display:block; margin:0 auto 8px; }
.authbrand-name { font-size:20px; color:var(--navy); }
.authbrand-name b { font-weight:700; }
.authbrand-tag { font-size:12px; color:var(--muted); margin-top:2px; }

/* ---------- landing / pricing ---------- */
.center { text-align: center; }
.hero { text-align: center; padding: 4px 4px 8px; }
.hero h1 { font-size: 24px; color: var(--navy); line-height: 1.25; margin-bottom: 8px; }
.hero p { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 auto; }
.herocta { display: flex; gap: 10px; justify-content: center; margin: 18px 0 10px; flex-wrap: wrap; }
.cbtn { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600;
  text-decoration: none; font-size: 15px; }
.cbtn.primary { background: var(--navy); color: #fff; }
.cbtn.ghost { background: var(--ice-light); color: var(--navy); }
.trustrow { font-size: 12px; color: var(--muted); margin-top: 6px; }
.features { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
.fcard { background: #fff; border: 1px solid #D7E2EC; border-radius: 12px; padding: 14px 16px; }
.fcard .fico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ice-light); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.fcard .fico svg { width: 21px; height: 21px; display: block; }
.fcard b { color: var(--navy); display: block; margin: 4px 0; }
.fcard p { color: var(--muted); font-size: 13px; margin: 0; }
.calc { text-align: center; }
.calc h2 { color: var(--navy); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; background: var(--ice-light);
  color: var(--navy); border: none; cursor: pointer; padding: 0; }
.stepper span { font-size: 28px; font-weight: 700; color: var(--navy); min-width: 40px; }
.calcprice { font-size: 30px; font-weight: 700; color: var(--navy); }
.calcprice .muted { font-size: 15px; font-weight: 400; }
.plans { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pcard { background: #fff; border: 1px solid #D7E2EC; border-radius: 12px; padding: 16px; position: relative; }
.pcard.feat { border: 2px solid var(--navy); }
.pbadge { position: absolute; top: -10px; right: 14px; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pname { font-weight: 600; color: var(--navy); font-size: 16px; }
.pprice { font-size: 24px; font-weight: 700; color: var(--navy); margin: 4px 0 8px; }
.pprice .muted { font-size: 14px; font-weight: 400; }
.pcard ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink); }
.pcard li { padding: 3px 0 3px 18px; position: relative; }
.pcard li:before { content: "✓"; color: var(--ok); position: absolute; left: 0; }
@media (min-width: 620px) { .features, .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- landing site footer (public front door) ---------- */
.sitefoot {
  margin: 28px 0 8px; padding: 18px 0 4px;
  border-top: 1px solid #D7E2EC;
  display: grid; grid-template-columns: 1fr; gap: 18px;
  font-size: 13px; color: var(--muted);
}
.sf-col b { color: var(--navy); display: block; margin-bottom: 5px; font-size: 13px; }
.sf-col p { margin: 0; }
.sf-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.sf-brand b { margin: 0; font-size: 14px; }
.sitefoot address { font-style: normal; line-height: 1.6; }
.sitefoot a { color: var(--navy); }
.sf-fine { margin-top: 8px !important; font-size: 12px; }
/* address column gets the most room — it holds the longest lines */
@media (min-width: 620px) { .sitefoot { grid-template-columns: 1fr 1.25fr 0.85fr; gap: 20px; } }

/* in-app reminder alert */
.remmodal { position: fixed; inset: 0; background: rgba(27,55,89,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.remmodal[hidden] { display: none; }
.rembox { background: #fff; border-radius: 14px; padding: 20px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.3); animation: rempulse 1.5s ease-in-out infinite; }
@keyframes rempulse { 0%,100% { box-shadow: 0 10px 40px rgba(0,0,0,.3); } 50% { box-shadow: 0 10px 40px rgba(27,55,89,.7); } }
.remtitle { font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.remlist { list-style: none; padding: 0; margin: 0 0 14px; }
.remlist li { padding: 8px 0; border-bottom: 1px solid #e6ebf1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

label.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); margin: 10px 0 4px; }
label.inline input[type=checkbox] { width: 18px; height: 18px; margin: 0; }

/* --- trial bar, offline-queue banner, legal footer, verify + legal pages (16 Oct 2026) --- */
.trialbar { background: var(--ice-light); color: var(--navy); font-size: 13px; text-align: center; padding: 7px 16px; border-bottom: 1px solid #D7E2EC; }
.trialbar.soon { background: #FAEEDA; color: #854F0B; }
.trialbar.over { background: #FBE3E0; color: var(--danger); }
.trialbar a { color: inherit; font-weight: 600; }
.qbanner { background: #FAEEDA; color: #854F0B; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid #F0D9A8; }
.qbanner .qwrap { max-width: 560px; margin: 0 auto; }
.qbanner button.link { color: #854F0B; }
.qbanner .qitem { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; border-top: 1px solid #F0D9A8; }
footer .footrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .legalline { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.hash { display: block; word-break: break-all; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ice-light); border-radius: 8px; padding: 10px; margin-top: 4px; }
.legal h2 { margin-top: 18px; font-size: 16px; }
.legal p, .legal li { font-size: 14px; margin-top: 6px; }
.legal ul { padding-left: 20px; }
.legal .fine { font-size: 12px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 12px; line-height: 1.45; }
.consent input { width: auto; margin: 3px 0 0; flex: none; }
.notice { background: var(--ice-light); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
