/* WeCare — shared stylesheet for the landing page and the build plan.
   Not content-hashed, so nginx must serve it with no-cache (see the vhost). */

:root {
  --teal-900: #0b3b3b;
  --teal-700: #14746f;
  --teal-600: #1a8b84;
  --teal-100: #d7ece9;
  --teal-50:  #eef7f5;

  --coral:    #c04e31;   /* button FILL: 4.80:1 with white text */
  --coral-tx: #b8472b;   /* coral as TEXT: 4.94:1 on cream (the fill is only 4.49 there) */
  --coral-dk: #a63f24;   /* 6.25:1 */

  --cream:    #faf7f2;
  --paper:    #ffffff;
  --sand:     #f1ece3;

  --ink:      #1b2320;
  --ink-2:    #3d4a45;
  --ink-3:    #616d67;   /* >=4.5:1 on cream, paper AND sand (the sand case was worst) */
  --line:     #e2ddd4;

  --ok:       #2f7d4f;
  --warn:     #b8860b;
  --risk:     #b23b2e;

  --radius:   14px;
  --radius-l: 22px;
  --shadow:   0 1px 2px rgba(27,35,32,.05), 0 8px 24px rgba(27,35,32,.06);
  --shadow-l: 0 2px 6px rgba(27,35,32,.06), 0 18px 48px rgba(27,35,32,.10);

  --maxw:     1180px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display:  'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--teal-900);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.55rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.32rem;
  color: var(--teal-900); text-decoration: none; letter-spacing: -.02em;
}
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  object-fit: contain; display: block;
}
/* The mark is teal, which vanishes against the dark footer — flatten it to white. */
.brand-mark.on-dark { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav-links a:hover { color: var(--teal-700); }
/* `.nav-links a` (0,1,1) outranks `.btn-*` (0,1,0), which silently repaints button
   label text to the nav link colour — dark-on-dark. Restate the colours at equal
   or higher specificity so a button inside the nav keeps its own. */
.nav-links a.btn-primary,
.nav-links a.btn-dark { color: #fff; }
.nav-links a.btn-ghost { color: var(--teal-900); }
.nav-links a.btn-ghost:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; font-family: var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(192,78,49,.28); }
.btn-primary:hover { background: var(--coral-dk); color: #fff; }
.btn-dark { background: var(--teal-900); color: #fff; }
.btn-dark:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-900); border-color: var(--teal-900); }
.btn-ghost:hover { background: var(--teal-900); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: .88rem; }

/* ---------- hero ---------- */

.hero { padding: 68px 0 20px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-img {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 16 / 10;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.trust {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.trust div {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.trust svg { width: 17px; height: 17px; color: var(--teal-600); flex: 0 0 17px; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 0; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-paper { background: var(--paper); }
.bg-sand  { background: var(--sand); }
.bg-teal  { background: var(--teal-900); color: #e8f2f0; }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal p { color: #bcd6d2; }

/* ---------- service grid ---------- */

.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px;
}
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-50); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 18px 20px 22px; }
.svc-body h3 { font-size: 1.12rem; margin-bottom: .3em; }
.svc-body p { font-size: .93rem; color: var(--ink-3); margin: 0; }
.svc-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--teal-50);
  display: grid; place-items: center; margin-bottom: 14px;
}
.svc-icon svg { width: 21px; height: 21px; color: var(--teal-700); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
  background: var(--teal-100); color: var(--teal-700); margin-top: 12px;
}
.tag.reg { background: #fdecea; color: var(--risk); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { position: relative; padding-top: 8px; }
.step-n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; margin-bottom: 15px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.bg-teal .step p { color: #a9c8c4; }
.bg-teal .step-n { background: var(--teal-100); color: var(--teal-900); }

/* ---------- plan page ---------- */

.plan-hero { padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; color: var(--ink-3); }
.meta-row strong { color: var(--ink-2); font-weight: 600; }

.layout { display: grid; grid-template-columns: 232px 1fr; gap: 54px; align-items: start; }
.toc { position: sticky; top: 76px; font-size: .9rem; }
.toc h4 {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a {
  display: block; padding: 6px 10px; border-radius: 7px;
  color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent;
}
.toc a::before { content: counter(toc) ". "; color: var(--ink-3); }
.toc a:hover { background: var(--teal-50); color: var(--teal-900); border-left-color: var(--teal-600); }

.content { min-width: 0; }
.content section { padding: 0 0 52px; scroll-margin-top: 80px; }
.content h2 {
  padding-bottom: 12px; border-bottom: 2px solid var(--teal-100); margin-bottom: 22px;
}
.content h3 { margin-top: 32px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 1.1em; }
.content li { margin-bottom: .45em; }

/* ---------- tables ---------- */

.tbl-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  background: var(--teal-50); font-weight: 700; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--teal-900); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
td code { font-size: .86em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sand); padding: 2px 6px; border-radius: 5px; font-size: .88em;
}
pre {
  background: var(--teal-900); color: #d6e8e5; padding: 18px 20px;
  border-radius: var(--radius); overflow-x: auto; font-size: .86rem; line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

/* ---------- callouts ---------- */

.note {
  border-left: 4px solid var(--teal-600); background: var(--teal-50);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em;
}
.note.risk  { border-left-color: var(--risk);  background: #fdeeec; }
.note.warn  { border-left-color: var(--warn);  background: #fdf6e3; }
.note.ok    { border-left-color: var(--ok);    background: #edf7f0; }
.note p:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--teal-900); }
.note.risk strong:first-child { color: var(--risk); }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; letter-spacing: .03em;
}
.pill-must { background: #fdecea; color: var(--risk); }
.pill-should { background: #fdf6e3; color: #8a6508; }
.pill-nice { background: var(--teal-100); color: var(--teal-700); }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 1.4em; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h4 { margin-bottom: .45em; color: var(--teal-900); }
.card p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.card .big {
  font-family: var(--display); font-size: 2.1rem; font-weight: 600;
  color: var(--teal-700); line-height: 1; margin-bottom: 6px; display: block;
}

.phase {
  display: grid; grid-template-columns: 116px 1fr; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.phase:last-child { border-bottom: none; }
.phase-when {
  font-family: var(--display); font-weight: 600; color: var(--teal-700); font-size: 1.02rem;
}
.phase-when span { display: block; font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.phase h3 { margin: 0 0 .4em; font-size: 1.12rem; }
.phase p { margin: 0 0 .5em; font-size: .94rem; color: var(--ink-2); }
.phase ul { margin: 0; font-size: .91rem; color: var(--ink-2); }

/* ---------- footer ---------- */

.footer { background: var(--teal-900); color: #9dbfba; padding: 52px 0 34px; font-size: .9rem; }
.footer a { color: var(--teal-100); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .84rem; }

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

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc {
    position: static; margin-bottom: 36px; padding: 18px 20px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .toc ol { columns: 2; column-gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-in { padding: 10px 18px; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 10px; }
  .toc ol { columns: 1; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 9px 11px; }
}

@media print {
  .nav, .toc, .footer, .hero-cta { display: none; }
  body { background: #fff; font-size: 11pt; }
  .layout { grid-template-columns: 1fr; }
  .content section { page-break-inside: avoid; }
}

/* ================================================================
   MOCKUPS — device frames and fake app chrome for the design page.
   Self-contained: nothing here is used by the landing page or plan.
   ================================================================ */

.mock-note { font-size: .88rem; color: var(--ink-3); margin: 10px 0 0; }

/* --- device frames --- */
.phone {
  width: 320px; flex: 0 0 320px;
  background: #11201d; border-radius: 34px; padding: 10px;
  box-shadow: var(--shadow-l); position: relative;
}
.phone-screen {
  background: var(--cream); border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 580px;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 22px; background: #11201d; border-radius: 0 0 14px 14px; z-index: 5;
}
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 20px 5px; font-size: .68rem; font-weight: 600; color: var(--ink);
  background: var(--paper);
}
.status-bar .dots { letter-spacing: 1px; }

.laptop {
  background: #11201d; border-radius: 12px; padding: 12px 12px 0;
  box-shadow: var(--shadow-l); width: 100%;
}
.laptop-screen { background: var(--cream); border-radius: 6px; overflow: hidden; }
.laptop-base {
  height: 12px; background: #11201d; border-radius: 0 0 12px 12px;
  margin: 0 -12px; position: relative;
}
.laptop-base::after {
  content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 4px; background: #2c3f3b; border-radius: 3px;
}

/* --- app chrome --- */
.app-top {
  background: var(--paper); padding: 12px 16px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.app-top img { width: 24px; height: 24px; }
.app-top .t { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--teal-900); }
.app-top .r { margin-left: auto; font-size: .72rem; color: var(--ink-3); }

.app-body { padding: 16px; flex: 1; font-size: .82rem; }
.app-body h5 {
  font-family: var(--display); font-size: 1.05rem; color: var(--teal-900);
  margin: 0 0 4px; font-weight: 600;
}
.app-body p { font-size: .8rem; color: var(--ink-2); margin: 0 0 12px; }

.app-tabs {
  display: flex; background: var(--paper); border-top: 1px solid var(--line);
  padding: 7px 0 10px; margin-top: auto;
}
.app-tabs div {
  flex: 1; text-align: center; font-size: .6rem; color: var(--ink-3); font-weight: 600;
}
.app-tabs div.on { color: var(--teal-700); }
.app-tabs svg { width: 18px; height: 18px; display: block; margin: 0 auto 3px; }

/* --- reusable app bits --- */
.m-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.m-card.hi { border-color: var(--teal-600); border-width: 2px; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px;
  border: 2px solid var(--teal-100);
}
.m-avatar.sm { width: 30px; height: 30px; flex: 0 0 30px; }
.m-name { font-weight: 700; font-size: .86rem; color: var(--teal-900); }
.m-sub { font-size: .72rem; color: var(--ink-3); }

.m-pill {
  display: inline-block; font-size: .62rem; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; letter-spacing: .02em;
}
.m-pill.ok   { background: #e4f3ea; color: #1f6b41; }
.m-pill.warn { background: #fdf2d8; color: #7d5c06; }
.m-pill.bad  { background: #fbe3e0; color: #9e3226; }
.m-pill.info { background: var(--teal-100); color: var(--teal-700); }

.m-btn {
  display: block; width: 100%; text-align: center; padding: 11px;
  border-radius: 10px; font-weight: 700; font-size: .82rem; border: none;
}
.m-btn.primary { background: var(--coral); color: #fff; }
.m-btn.dark    { background: var(--teal-900); color: #fff; }
.m-btn.ghost   { background: transparent; color: var(--teal-900); border: 1.5px solid var(--teal-900); }

/* --- the live-tracking map --- */
.m-map {
  height: 150px; border-radius: 12px; margin-bottom: 10px; position: relative;
  background:
    linear-gradient(0deg, rgba(20,116,111,.06) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(20,116,111,.06) 1px, transparent 1px) 0 0 / 22px 100%,
    #e8f0ed;
  overflow: hidden; border: 1px solid var(--line);
}
.m-route {
  position: absolute; left: 22%; top: 76%; width: 56%; height: 44%;
  border-top: 3px dashed var(--teal-600); border-left: 3px dashed var(--teal-600);
  border-top-left-radius: 40px; transform: rotate(-4deg);
}
.m-pin {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .6rem; font-weight: 700; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.m-pin.a { background: var(--teal-700); left: 16%; top: 68%; }
.m-pin.b { background: var(--coral);    right: 16%; top: 20%; }
.m-eta {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: .7rem; font-weight: 700; color: var(--teal-900);
  white-space: nowrap; box-shadow: var(--shadow);
}

/* --- the completion code --- */
.m-code {
  display: flex; gap: 7px; justify-content: center; margin: 12px 0;
}
.m-code span {
  width: 34px; height: 44px; border-radius: 9px; background: var(--teal-900); color: #fff;
  display: grid; place-items: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 1.28rem; font-weight: 700;
}

/* --- stars --- */
/* Filled star clears 4.5:1 outright. The empty state uses an OUTLINE glyph (☆) so
   full-vs-empty is carried by SHAPE, not by lightness alone — which also lets the
   empty star be dark enough to pass instead of near-invisible. */
.m-stars { color: #96650a; letter-spacing: 3px; font-size: 1.15rem; }
.m-stars .off { color: var(--ink-3); }

/* --- the partner CALENDAR --- */
.cal-head {
  display: grid; grid-template-columns: 38px repeat(5, 1fr);
  font-size: .6rem; font-weight: 700; color: var(--ink-3); text-align: center;
  border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 3px;
}
.cal-head div span { display: block; font-size: .78rem; color: var(--teal-900); }
.cal-head div.today span { color: var(--coral-tx); }
.cal-grid {
  display: grid; grid-template-columns: 38px repeat(5, 1fr);
  grid-auto-rows: 26px; gap: 2px; position: relative;
}
.cal-time { font-size: .55rem; color: var(--ink-3); text-align: right; padding-right: 5px; line-height: 26px; }
.cal-slot { background: rgba(20,116,111,.04); border-radius: 3px; }
.cal-job {
  border-radius: 5px; padding: 3px 5px; font-size: .56rem; font-weight: 700;
  color: #fff; overflow: hidden; line-height: 1.25;
}
.cal-job small { display: block; font-weight: 500; opacity: .85; font-size: .95em; }
.cal-job.care  { background: var(--teal-700); }
.cal-job.clean { background: #4a7c8c; }
.cal-job.garden{ background: #5a7d47; }
.cal-job.trade { background: var(--coral); }
.cal-travel {
  background: repeating-linear-gradient(45deg, #e6e0d5, #e6e0d5 4px, #f1ece3 4px, #f1ece3 8px);
  border-radius: 4px; font-size: .5rem; color: var(--ink-3); text-align: center;
  line-height: 1.15; padding-top: 2px; font-weight: 700;
}

/* --- admin console --- */
.adm {
  display: grid; grid-template-columns: 148px 1fr; min-height: 470px;
  font-size: .76rem; background: var(--cream);
}
.adm-nav { background: var(--teal-900); padding: 14px 10px; }
.adm-nav .brand-row {
  display: flex; align-items: center; gap: 7px; margin-bottom: 16px;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: .9rem;
}
.adm-nav .brand-row img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.adm-nav a {
  display: block; padding: 6px 9px; border-radius: 6px; color: #a9c8c4;
  text-decoration: none; font-size: .72rem; margin-bottom: 2px; font-weight: 500;
}
.adm-nav a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.adm-main { padding: 16px 18px; overflow: hidden; }
.adm-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.adm-h h5 { font-family: var(--display); font-size: 1.1rem; color: var(--teal-900); margin: 0; font-weight: 600; }

.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.adm-kpi b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--teal-700); line-height: 1.1; }
.adm-kpi span { font-size: .62rem; color: var(--ink-3); font-weight: 600; }

.adm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.adm-panel h6 {
  margin: 0 0 9px; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.adm-item {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px; margin-bottom: 7px;
}
.adm-item.pick { border-color: var(--teal-600); background: var(--teal-50); }
.adm-item.block { opacity: .55; }
.adm-table { width: 100%; font-size: .7rem; border-collapse: collapse; }
.adm-table th {
  text-align: left; font-size: .58rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); padding: 5px 6px; background: transparent; white-space: nowrap;
}
.adm-table td { padding: 6px; border-top: 1px solid var(--line); }

/* --- design page layout --- */
.screens { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.screen-cap { max-width: 320px; }
.screen-cap h4 { margin: 12px 0 3px; font-size: .95rem; color: var(--teal-900); }
.screen-cap p { font-size: .84rem; color: var(--ink-2); margin: 0; }

@media (max-width: 720px) {
  .phone { width: 100%; max-width: 320px; flex: 1 1 280px; margin: 0 auto; }
  .screens { justify-content: center; }
  .adm { grid-template-columns: 1fr; }
  .adm-nav { display: none; }
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-split { grid-template-columns: 1fr; }
}

/* ================================================================
   CHARTS — palette validated with the dataviz validator, not eyeballed.
   Slots are the reference categorical palette's 1 and 2: they clear every
   check on a light surface (CVD ΔE 24.7, normal-vision ΔE 33.6, both >=3:1).
   The WeCare brand teal FAILS the chroma floor — it reads grey as a data
   fill — so data marks deliberately do not use it.
   ================================================================ */

.viz {
  --surface-1: #ffffff;
  --series-1: #2a78d6;   /* partner payable */
  --series-2: #eb6834;   /* gross margin    */
  background: var(--surface-1);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 14px; margin-bottom: 18px;
}
.viz-head { margin-bottom: 4px; }
.viz-head h4 { margin: 0 0 2px; font-size: 1rem; color: var(--teal-900); }
.viz-head p  { margin: 0; font-size: .82rem; color: var(--ink-3); }

.viz-legend { display: flex; gap: 16px; margin: 10px 0 4px; flex-wrap: wrap; }
.viz-legend span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); }
.viz-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid { stroke: #e8e4db; stroke-width: 1; }
.viz .axis { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); }
.viz .axis-b { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; font-family: var(--font); }
.viz .dlabel { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font); }
.viz .bar { transition: opacity .12s ease; cursor: pointer; }
.viz g:hover .bar { opacity: .82; }

/* horizontal single-series bars */
.hbar { display: grid; grid-template-columns: 128px 1fr 74px; gap: 10px; align-items: center; margin-bottom: 9px; }
.hbar .lab { font-size: .82rem; color: var(--ink-2); text-align: right; }
/* both must be block: they are <span>s, and width/height do not apply to an inline box. */
.hbar .track { display: block; background: #f0ede6; border-radius: 4px; height: 20px; overflow: hidden; }
.hbar .fill  { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.hbar .val { font-size: .82rem; font-weight: 700; color: var(--ink); }

.viz-tip {
  position: fixed; pointer-events: none; opacity: 0; transition: opacity .1s ease;
  background: var(--teal-900); color: #fff; padding: 7px 11px; border-radius: 8px;
  font-size: .76rem; line-height: 1.45; z-index: 90; box-shadow: var(--shadow-l); white-space: nowrap;
}
.viz-tip b { display: block; margin-bottom: 3px; font-size: .8rem; }
.viz-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; font-style: normal; }

details.viz-table { margin-top: 10px; }
details.viz-table summary {
  font-size: .78rem; color: var(--teal-700); cursor: pointer; font-weight: 600; padding: 4px 0;
}
details.viz-table table { margin-top: 8px; font-size: .8rem; }

@media (max-width: 640px) {
  .hbar { grid-template-columns: 92px 1fr 62px; gap: 7px; }
  .hbar .lab, .hbar .val { font-size: .74rem; }
}
