/* WeCare UI: teal and navy, large touch targets, WCAG 2.2 AA contrast. */
:root {
  --primary: #0F766E;          /* overridden per tenant by /brand.css */
  --primary-tint: #E3F2F0;
  --navy: #1E3A5F;
  --ink: #13263F;
  --muted: #4B5B6E;
  --line: #D9E3E6;
  --line-soft: #E6EDEF;
  --bg: #F7FAFA;
  --white: #FFFFFF;
  --coral: #E8705A;
  --ok: #15803D; --ok-bg: #E7F4EC;
  --warn: #B45309; --warn-bg: #FBF0E4;
  --bad: #B91C1C; --bad-bg: #FBE9E9;
  --info: #1D4ED8; --info-bg: #E8EEFC;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--primary); font-weight: 600; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* layout */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 220px; max-width: 248px; background: var(--navy); color: var(--white); padding: 20px 14px; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; color: var(--white); text-decoration: none; }
.side nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #D6E2EC; text-decoration: none; font-weight: 500; }
.side nav a.on, .side nav a[aria-current="page"] { background: var(--primary); color: var(--white); font-weight: 600; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side .sep { border-top: 1px solid rgba(255,255,255,.15); margin: 12px 6px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.tenant { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tenant img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.monogram { width: 36px; height: 36px; border-radius: 9px; background: #FBEAE5; color: #A6402B; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }
.public-top { background: var(--white); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.public-top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.wordmark { font-family: 'Nunito', 'Figtree', sans-serif; font-weight: 800; font-size: 24px; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark b { color: #0F766E; font-weight: 800; }
.side .wordmark, .side .wordmark b { color: var(--white); }

/* mobile caregiver shell */
.mobile { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.mobile .content { padding: 16px 16px 96px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: var(--white); border-top: 1px solid var(--line); padding: 6px 0 14px; }
.tabbar a { min-width: 64px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tabbar a.on { color: var(--primary); }

/* components */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card.accent { border: 2px solid var(--primary); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.2; }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi.primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.kpi.primary .l { color: var(--white); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--primary); color: var(--white); font: 600 16px 'Figtree', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.94); }
.btn.ghost { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn.navy { background: var(--navy); }
.btn.danger { background: var(--white); color: var(--bad); border: 1.5px solid var(--bad); }
.btn.big { min-height: 60px; font-size: 20px; width: 100%; border-radius: 14px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.disabled { background: #DCE4E7; color: var(--muted); border-color: #DCE4E7; cursor: not-allowed; filter: none; }
.linkbtn { background: none; border: 0; color: var(--primary); font: 600 15px 'Figtree', sans-serif; cursor: pointer; padding: 8px 0; text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.grey { background: #EEF3F4; color: var(--muted); }

.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.alert.ok { background: var(--ok-bg); color: #0F5A2B; }
.alert.bad { background: var(--bad-bg); color: #8E1515; }
.alert.info { background: #EEF6F5; color: var(--ink); }
.alert.warn { background: var(--warn-bg); color: #7A3A07; }

/* forms */
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #A9B9C0; border-radius: 10px; font: 16px 'Figtree', system-ui, sans-serif; background: var(--white); color: var(--ink);
}
textarea { min-height: 96px; }
input[type=color] { width: 64px; height: 46px; border: 1px solid #A9B9C0; border-radius: 10px; background: var(--white); padding: 2px; }
input[type=file] { font-size: 15px; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex: none; }
fieldset { border: 0; margin: 0 0 14px; padding: 0; }
legend { font-weight: 600; font-size: 16px; margin-bottom: 8px; padding: 0; }
.cols { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* segmented choices built from radio buttons (no typing) */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { margin: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid #A9B9C0; border-radius: 10px; background: var(--white); font-size: 15px; cursor: pointer; text-align: center; padding: 4px; }
.seg input:checked + label { border: 2px solid var(--primary); background: var(--primary-tint); color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--info); outline-offset: 2px; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }

/* stepper */
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; color: var(--muted); }
.steps li .n { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #DCE4E7; color: var(--muted); font-size: 14px; flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done .n { background: var(--ok); color: var(--white); }
.steps li.now { border: 2px solid var(--primary); background: var(--primary-tint); color: var(--ink); }
.steps li.now .n { background: var(--primary); color: var(--white); }

.agreement { border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; background: var(--white); }
.agreement summary { cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 44px; }
.agreement pre { white-space: pre-wrap; font: 15px/1.6 'Figtree', sans-serif; margin: 0; padding: 0 16px 16px; max-height: 320px; overflow: auto; }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: 40px; max-width: 760px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; }
.feature h3 { font-size: 17px; }
.price { font-size: 26px; font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.swatch { min-height: 44px; border-radius: 10px; border: 1px solid #A9B9C0; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
.swatch i { width: 18px; height: 18px; border-radius: 999px; display: inline-block; flex: none; }
.preview-bar { background: var(--navy); color: var(--white); border-radius: 12px; padding: 14px; display: flex; gap: 10px; align-items: center; }
.selfie { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; border: 4px solid var(--line); background: #EAF1F2; }
.verify-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.dot { width: 14px; height: 14px; border-radius: 999px; flex: none; background: #DCE4E7; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.wait { background: var(--warn); }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
footer.site { padding: 32px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .side { max-width: none; flex-basis: 100%; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .content { padding: 16px; }
  .hero h1 { font-size: 30px; }
}
.narrow { max-width: 480px; margin: 40px auto; }
.mt { margin-top: 20px; }
.mb0 { margin-bottom: 0; }
.w-auto { width: auto; }
.grow { flex: 1 1 260px; min-width: 0; }
.verify-row { flex-wrap: wrap; }
code.link { display: block; word-break: break-all; background: #EEF3F4; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
