:root {
  --cf-black: #050505;
  --cf-ink: #12141a;
  --cf-lime: #7CAE3A;
  --cf-lime-bright: #9bd147;
  --cf-white: #ffffff;
  --cf-muted: #8b929e;
  --cf-line: rgba(255, 255, 255, 0.1);
  --cf-soft: #f4f5f7;
  --cf-panel: #ffffff;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  direction: ltr;
  text-align: left;
}
body {
  margin: 0;
  direction: ltr;
  text-align: left;
  font-family: var(--font-body);
  color: var(--cf-ink);
  line-height: 1.55;
  min-height: 100vh;
  background: #f4f5f7;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  font-weight: 700;
}
p { margin: 0 0 1rem; color: var(--cf-muted); }
.container { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }

/* ——— Public marketing ——— */
body.public-site {
  background: #070708;
  color: #eceef2;
}
body.public-site p { color: #a8b0bd; }

.public-site .site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 8, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.public-site .nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.public-site .brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: #fff;
  flex-shrink: 0;
}
.public-site .brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(240px, 48vw);
  object-fit: contain;
}
.public-site .site-nav {
  display: flex; flex-wrap: wrap; gap: 0.1rem 0.05rem; align-items: center;
}
.public-site .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: rgba(232, 236, 242, 0.68);
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  transition: color 0.2s ease;
}
.public-site .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--cf-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  opacity: 0.95;
}
.public-site .nav-link:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}
.public-site .nav-link:hover::after {
  transform: scaleX(1);
}
.public-site .nav-link.is-active {
  color: #fff;
  background: transparent;
  border-color: transparent;
  font-weight: 600;
}
.public-site .nav-link.is-active::after {
  transform: scaleX(1);
}
.public-site .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: 0.65rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  background: var(--cf-lime);
  border: 0;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.public-site .nav-cta:hover {
  background: var(--cf-lime-bright);
  transform: translateY(-1px);
  filter: none;
  box-shadow: none;
  color: #0a0a0a;
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 5px auto; background: #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; text-decoration: none; border: 1px solid transparent;
  border-radius: 999px; padding: 0.88rem 1.35rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--cf-lime); color: #0a0a0a; }
.btn-primary:hover { background: var(--cf-lime-bright); transform: translateY(-2px); }
.public-site .btn-ghost {
  background: transparent; border-color: rgba(255,255,255,0.18); color: #fff;
}
.public-site .btn-ghost:hover { border-color: var(--cf-lime); color: var(--cf-lime-bright); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }

.eyebrow, .hero-kicker, .work-tag {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cf-lime-bright);
}
.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 1.2rem;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 38rem;
  color: #b4bcc9 !important;
  margin-bottom: 1.6rem;
}

/* Hero */
.hero-stage {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-content: center;
  padding: 6.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-stage-clean {
  align-content: center;
  min-height: min(78vh, 700px);
  padding: 6rem 0 4rem;
}
.hero-stage-clean .hero-inner {
  max-width: 46rem;
}
.hero-stage-photo {
  min-height: min(82vh, 760px);
  padding: 7rem 0 4.5rem;
  align-content: end;
}
.hero-stage-photo .hero-inner {
  max-width: 40rem;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) contrast(1.05);
}
.hero-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,7,8,0.92) 0%, rgba(7,7,8,0.72) 42%, rgba(7,7,8,0.35) 100%),
    linear-gradient(180deg, rgba(7,7,8,0.55) 0%, rgba(7,7,8,0.25) 40%, rgba(7,7,8,0.88) 100%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: min(70vw, 720px); height: min(70vw, 720px);
  background: radial-gradient(circle, rgba(124,174,58,0.28) 0%, transparent 68%);
  pointer-events: none; animation: drift 12s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.range-shots {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.range-shots-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .range-shots,
  .range-shots-4 {
    grid-template-columns: 1fr;
  }
}
.range-featured {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.15fr;
  gap: 1.25rem;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1.15rem;
  padding: 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0c0d10;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.range-featured:hover {
  border-color: rgba(124,174,58,0.4);
  transform: translateY(-3px);
}
.range-featured-logo {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
}
.range-featured-logo img {
  width: min(100%, 320px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
}
.range-featured-copy h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.range-featured-copy p:last-child {
  margin: 0;
}
@media (max-width: 720px) {
  .range-featured {
    grid-template-columns: 1fr;
  }
}
.work-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.work-points li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}
.work-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cf-lime, #7cae3a);
}
.work-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0c0d10;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-thumb:hover,
.work-thumb:focus-visible {
  border-color: rgba(124,174,58,0.45);
  transform: translateY(-2px);
  outline: none;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.work-thumb-logo {
  background: #fff;
}
.work-thumb-logo img {
  object-fit: contain;
  object-position: center;
  padding: 1.5rem;
}
.work-thumb-brand img {
  object-fit: contain;
  object-position: center;
  background: #1a3c34;
  padding: 1rem;
}
.work-thumb-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  background: rgba(124,174,58,0.92);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.work-thumb:hover .work-thumb-hint,
.work-thumb:focus-visible .work-thumb-hint {
  opacity: 1;
  transform: translateY(0);
}
.work-link-wrap { margin: 0.85rem 0 0; }
.work-ext-link {
  display: inline-flex;
  align-items: center;
  color: var(--cf-lime-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(155,209,71,0.45);
}
.work-ext-link:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}

body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,0.82);
  cursor: zoom-out;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(88vh, 900px);
  display: grid;
  place-items: center;
}
.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(88vh, 900px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--cf-lime);
  color: #0a0a0a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.lightbox-close:hover { background: var(--cf-lime-bright); }
.range-shot {
  display: grid;
  gap: 0;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0c0d10;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.range-shot:hover {
  border-color: rgba(124,174,58,0.4);
  transform: translateY(-3px);
}
.range-shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  background: #111;
}
.range-shot-copy {
  padding: 1.15rem 1.25rem 1.3rem;
}
.range-shot-copy h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.range-shot-copy p:last-child {
  margin: 0;
}

.hero-stage h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-visual {
  position: absolute; right: max(2%, calc(50% - 560px)); bottom: 8%;
  width: min(420px, 42vw); z-index: 1; opacity: 0.95;
}
.hero-panel {
  border-radius: 18px;
  border: 1px solid rgba(124,174,58,0.28);
  background: linear-gradient(160deg, rgba(28,30,36,0.95), rgba(10,10,12,0.98));
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: rotate(-2deg);
  animation: floaty 7s ease-in-out infinite;
}
.hero-panel-bar {
  display: flex; gap: 6px; padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-panel-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18);
}
.hero-panel-bar span:first-child { background: #ff5f57; }
.hero-panel-body { padding: 1rem; display: grid; gap: 0.75rem; }
.hp-row { display: flex; gap: 0.5rem; }
.hp-row i {
  display: block; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); flex: 1;
}
.hp-row i.wide { flex: 2.2; background: rgba(124,174,58,0.35); }
.hp-row i.mid { flex: 1.4; }
.hp-chart {
  display: flex; align-items: flex-end; gap: 0.4rem; height: 90px;
  padding: 0.4rem 0;
}
.hp-chart span {
  flex: 1; height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cf-lime-bright), rgba(124,174,58,0.2));
  animation: rise 1.2s ease both;
}
.hp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; color: #9bd147;
  padding: 0.55rem 0.7rem; border-radius: 10px;
  background: rgba(124,174,58,0.08); border: 1px solid rgba(124,174,58,0.18);
}
.hp-code span { color: #6a6f78; }

@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-4%, 6%); } }
@keyframes floaty { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
@keyframes rise { from { transform: scaleY(0.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.trust-strip { padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; color: #8d95a3; font-size: 0.86rem; font-weight: 600;
}
.trust-inner span { position: relative; padding-left: 0.9rem; }
.trust-inner span::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cf-lime);
}

.trust-band {
  padding: 0 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #0a0a0c, #070708);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.trust-tile {
  padding: 1.6rem 1.35rem 1.7rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.trust-tile:last-child { border-right: 0; }
.trust-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cf-lime);
  margin-bottom: 0.55rem;
}
.trust-tile strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.trust-tile p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(168,176,189,0.9);
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-tile:nth-child(2n) { border-right: 0; }
  .trust-tile:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-tile {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .trust-tile:last-child { border-bottom: 0; }
}

.section-tools {
  border-bottom: none;
}
.tool-slider {
  overflow: hidden;
  position: relative;
}
.tool-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
}
.tool-slide {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.tool-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
.tool-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
}
.tool-slider-dots button.is-active {
  background: var(--cf-lime);
  transform: scale(1.15);
}
.tool-item {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 1.15rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.15rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.tool-icon img {
  width: auto;
  max-width: 36px;
  max-height: 28px;
  object-fit: contain;
}
.tool-icon-cursor {
  color: #fff;
  background: #111;
}
.tool-icon-cursor img {
  width: 22px;
  height: 22px;
  filter: invert(1);
}
.tool-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.tool-role {
  font-size: 0.78rem;
  color: rgba(168,176,189,0.85);
  line-height: 1.3;
  font-weight: 500;
}
@media (max-width: 560px) {
  .tool-slide {
    grid-template-columns: 1fr;
  }
}

.section { padding: 4.5rem 0; }
.section-dark {
  background: linear-gradient(180deg, #0c0d10, #080809);
  border-block: 1px solid rgba(255,255,255,0.05);
}
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2,
.page-hero h1,
.cta-band h2,
.service-block h2,
.work-feature h2,
.contact-aside h2 {
  color: #fff;
}
.page-hero {
  padding: 5.5rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(700px 280px at 85% 0%, rgba(124,174,58,0.16), transparent 60%),
    #070708;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; }
.page-hero-services .lead {
  max-width: 42rem;
}
.page-hero-services h1 {
  max-width: 14ch;
}
.services-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 1.75rem 0 0;
}
.services-jump a {
  color: var(--cf-lime-bright);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(196, 214, 92, 0.35);
  padding-bottom: 0.1rem;
}
.services-jump a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.45);
}
.services-fit {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.services-fit > div {
  padding: 0;
  border: none;
  background: none;
}
.services-fit h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}
.services-fit p {
  margin: 0;
  color: rgba(168,176,189,0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .services-fit {
    grid-template-columns: 1fr;
  }
}

.care-tiers {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.care-tier {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.care-tier:hover {
  border-color: rgba(124,174,58,0.35);
  transform: translateY(-2px);
}
.care-tier.is-best {
  border-color: rgba(124,174,58,0.65);
  background:
    radial-gradient(circle at 90% 0%, rgba(124,174,58,0.18), transparent 50%),
    linear-gradient(180deg, rgba(124,174,58,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 1px rgba(124,174,58,0.12), 0 14px 32px rgba(0,0,0,0.22);
}
.care-tier-badge {
  margin: 0 0 0.55rem;
  min-height: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cf-lime-bright);
  font-weight: 700;
  font-family: var(--font-body);
}
.care-tier-badge-spacer { visibility: hidden; }
.care-tier h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.care-tier-hours {
  margin: 0.25rem 0 0;
  color: rgba(168,176,189,0.95);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
}
.care-tier-price {
  margin: 0.75rem 0 0.35rem;
  color: #c5ccd8;
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-body);
}
.care-tier-price span {
  color: #fff;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.care-tier-price small {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(168,176,189,0.9);
}
.care-tier-blurb {
  margin: 0 0 0.85rem;
  color: rgba(168,176,189,0.95);
  font-size: 0.9rem;
  line-height: 1.45;
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 2.7em;
}
.care-tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1 1 auto;
  align-content: start;
}
.care-tier-features li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(232,236,242,0.88);
  font-size: 0.88rem;
  line-height: 1.4;
  font-family: var(--font-body);
  font-weight: 400;
}
.care-tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cf-lime);
}
.care-tier-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.care-home-link { margin: 1.25rem 0 0; }
.care-compare-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}
.care-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.care-compare th,
.care-compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.92rem;
}
.care-compare thead th {
  color: #fff;
  background: rgba(255,255,255,0.03);
  font-weight: 700;
}
.care-compare tbody th {
  color: #e8ecf2;
  font-weight: 600;
  width: 38%;
}
.care-compare td {
  color: rgba(168,176,189,0.95);
  text-align: center;
}
.care-compare td.is-yes { color: var(--cf-lime-bright); font-weight: 700; }
.care-compare td.is-no { color: rgba(125,133,148,0.85); }
.care-note {
  margin: 1.1rem 0 0;
  color: rgba(168,176,189,0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52rem;
}
.care-note a { color: var(--cf-lime-bright); }
.free-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.free-teaser h2 {
  color: #fff;
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.free-teaser p { margin: 0; max-width: 42rem; }
.free-include {
  max-width: 40rem;
}
@media (max-width: 900px) {
  .care-tiers {
    grid-template-columns: 1fr;
  }
}

.services-photo {
  position: relative;
  margin: 0;
  min-height: clamp(280px, 48vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.services-photo img {
  width: 100%;
  height: clamp(280px, 48vw, 520px);
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.92) contrast(1.05);
}
.services-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,8,0.15) 0%, rgba(7,7,8,0.55) 55%, rgba(7,7,8,0.92) 100%),
    linear-gradient(90deg, rgba(7,7,8,0.45), transparent 40%);
  pointer-events: none;
}
.services-photo-graphic {
  min-height: 0;
  background: #050505;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.2rem 1.5rem;
  border: 0;
  border-bottom: 0;
}
.services-photo.services-photo-graphic {
  border: 0;
  border-bottom: 0;
}
.services-photo-graphic img {
  height: auto;
  max-height: none;
  width: 100%;
  max-width: 980px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  filter: none;
  border-radius: 0;
  box-shadow: none;
}
.services-photo-graphic::after {
  display: none;
}
@media (max-width: 700px) {
  .services-photo-graphic {
    padding: 0.85rem 0.6rem 1.1rem;
  }
  .services-photo-graphic img {
    max-width: 100%;
    border-radius: 0;
  }
}
.services-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.6rem 0 1.8rem;
}
.services-photo-caption p {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  color: #e8ecf2 !important;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 28ch;
  line-height: 1.2;
}

.offer-rows { display: grid; gap: 0; }
.offer-row {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s ease;
}
.offer-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.offer-row:hover { background: rgba(124,174,58,0.04); }
.offer-index {
  font-family: var(--font-display); font-weight: 800; color: var(--cf-lime);
  font-size: 1.1rem; letter-spacing: -0.03em;
}
.offer-row h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.35rem; }

.scale-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.scale-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.scale-card h3 { color: #fff; }
.scale-card-accent {
  border-color: rgba(124,174,58,0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(124,174,58,0.18), transparent 55%),
    rgba(255,255,255,0.03);
}

.cta-band {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding: 2rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(124,174,58,0.28);
  background:
    radial-gradient(circle at 0% 50%, rgba(124,174,58,0.18), transparent 45%),
    linear-gradient(135deg, #14151a, #0a0a0c);
}
.cta-band p:last-child { margin: 0; }

.service-blocks {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-block {
  padding: 1.6rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-block:hover {
  border-color: rgba(124,174,58,0.35);
  transform: translateY(-3px);
}
.service-block h2 { font-size: 1.45rem; }

.service-detail { max-width: 980px; }
.service-detail-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.service-detail-head h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.service-detail-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-detail-grid > div {
  padding: 1.35rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.service-detail-grid h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(232,236,242,0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cf-lime);
}
.service-detail-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}
.service-detail-note a {
  color: var(--cf-lime-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.process-steps li {
  position: relative;
  padding: 1.25rem 1.15rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 0.45rem;
  counter-increment: step;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cf-lime);
}
.process-steps strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.process-steps span {
  color: rgba(168,176,189,0.9);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .service-detail-grid,
  .service-detail-grid-3,
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.services-work-teaser {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.services-work-link {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.services-work-link:hover {
  border-color: rgba(124,174,58,0.4);
  background: rgba(124,174,58,0.06);
  transform: translateY(-2px);
  color: inherit;
}
.services-work-link strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.services-work-link > span:last-child {
  color: rgba(168,176,189,0.9);
  font-size: 0.92rem;
  line-height: 1.45;
}
.services-work-more {
  margin: 1.35rem 0 0;
}
@media (max-width: 900px) {
  .services-work-teaser {
    grid-template-columns: 1fr;
  }
}

.work-list {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}
.work-case {
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, #121318, #0a0a0c);
}
.work-case h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}
.work-case p {
  margin-bottom: 0.85rem;
}
.work-case p:last-child {
  margin-bottom: 0;
}
.work-case-latest {
  border-color: rgba(124,174,58,0.35);
  background: linear-gradient(145deg, #14171c, #0a0a0c);
}
.work-showcase { display: grid; gap: 1.25rem; }
.work-feature-latest {
  border-color: rgba(124,174,58,0.35);
  background: linear-gradient(145deg, #14171c, #0a0a0c);
}
.work-feature {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem;
  padding: 1.5rem; border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, #121318, #0a0a0c);
}
.work-feature-visual {
  display: grid; place-items: center;
  border-radius: 16px; min-height: 160px;
  background:
    radial-gradient(circle at 70% 30%, rgba(124,174,58,0.2), transparent 50%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.mini-ui { width: min(220px, 80%); display: grid; gap: 0.7rem; }
.mini-ui-top { height: 10px; border-radius: 999px; background: rgba(124,174,58,0.5); width: 40%; }
.mini-bars { display: flex; align-items: flex-end; gap: 0.35rem; height: 70px; }
.mini-bars b {
  flex: 1; border-radius: 4px;
  background: linear-gradient(180deg, var(--cf-lime), transparent);
  height: calc(30% + 12% * var(--i, 3));
}
.mini-bars b:nth-child(1) { height: 35%; }
.mini-bars b:nth-child(2) { height: 55%; }
.mini-bars b:nth-child(3) { height: 45%; }
.mini-bars b:nth-child(4) { height: 75%; }
.mini-bars b:nth-child(5) { height: 60%; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.mini-kpis span { height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(124,174,58,0.2); }
.mini-line {
  height: 48px; border-radius: 10px;
  background: linear-gradient(90deg, transparent, rgba(124,174,58,0.45), transparent);
  opacity: 0.8;
}
.mini-invoice { height: 54px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.mini-pay {
  height: 28px; width: 55%; border-radius: 999px;
  background: var(--cf-lime); justify-self: start;
}

.contact-layout {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr; align-items: start;
}
.contact-form, .contact-aside, .panel, .legal-panel {
  padding: 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.legal-panel {
  max-width: 760px;
  display: grid;
  gap: 0.85rem;
}
.legal-panel h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0.85rem 0 0.15rem;
}
.legal-panel h2:first-child { margin-top: 0; }
.legal-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
}
.legal-panel th,
.legal-panel td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal-panel th { background: rgba(255,255,255,0.04); color: #fff; }
.legal-panel ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}
.legal-panel li { margin: 0.25rem 0; }
.legal-updated {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.contact-form { display: grid; gap: 0.9rem; }
.public-site label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: #d5dae3; }
.public-site input,
.public-site textarea,
.public-site select {
  width: 100%; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.8rem 0.9rem; font: inherit;
  background: rgba(0,0,0,0.35); color: #fff;
  direction: ltr; text-align: left; unicode-bidi: isolate;
}
.public-site select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a8b0bd 50%), linear-gradient(135deg, #a8b0bd 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.1rem), calc(100% - 12px) calc(1.1rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.35);
}
.field-optional {
  font-weight: 500;
  color: var(--cf-muted);
  font-size: 0.82rem;
}
.public-site textarea { min-height: 150px; resize: vertical; }
.text-link { color: var(--cf-lime-bright); text-decoration: none; font-weight: 700; }
.contact-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; }
.contact-points li { position: relative; padding-left: 1rem; color: #c5ccd8; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cf-lime);
}

.site-footer {
  margin-top: 2rem; padding: 3.25rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(124,174,58,0.08), transparent 55%),
    #050505;
  color: #c5ccd8;
}
.footer-top {
  display: grid; gap: 2.25rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  align-items: start;
}
.footer-logo-link {
  display: inline-block;
  margin: 0 0 0.85rem;
  line-height: 0;
}
.footer-logo {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  filter: brightness(1.05);
}
.footer-wordmark {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  letter-spacing: -0.05em; color: #fff; margin: 0 0 0.6rem;
}
.footer-tagline {
  margin: 0 0 1rem;
  max-width: 34ch;
  line-height: 1.5;
  color: #a8b0bd;
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #8b93a1;
}
.footer-social {
  margin: 1rem 0 0;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-social-icon {
  flex: 0 0 auto;
  opacity: 0.9;
}
.footer-cols {
  display: grid; gap: 1.25rem 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer-cols p { margin: 0 0 0.45rem; }
.site-footer a { color: #c5ccd8; text-decoration: none; }
.site-footer a:hover { color: var(--cf-lime-bright); }
.site-footer h4 {
  margin: 0 0 0.7rem; color: #fff;
  font-family: var(--font-body); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem;
  font-size: 0.84rem; color: #7d8594;
}
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}
.legal-nav a {
  color: var(--cf-lime-bright);
  text-decoration: none;
}
.legal-nav a:hover { text-decoration: underline; }
.legal-nav a.is-current { font-weight: 700; color: #fff; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.alert { border-radius: 12px; padding: 0.8rem 0.95rem; margin: 1rem 0; }
.alert-success { background: rgba(124,174,58,0.15); border: 1px solid rgba(124,174,58,0.35); color: #d7e7b8; }
.alert-danger { background: rgba(185,28,28,0.15); border: 1px solid rgba(185,28,28,0.35); color: #fecaca; }
/* Admin (light UI) — high-contrast alerts */
.app-body .alert-danger {
  background: #fee2e2;
  border: 1px solid #b91c1c;
  color: #7f1d1d;
  font-weight: 600;
}
.app-body .alert-success {
  background: #dcfce7;
  border: 1px solid #15803d;
  color: #14532d;
  font-weight: 600;
}
.app-body .alert p { color: inherit; }

/* Fallback light bits for install on public layout */
.panel { }
.form-grid { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
input, textarea, select {
  width: 100%; border-radius: 12px; border: 1px solid rgba(10,10,10,0.14);
  padding: 0.75rem 0.85rem; font: inherit; background: #fff;
  direction: ltr; text-align: left; unicode-bidi: isolate;
}
textarea { min-height: 140px; resize: vertical; }

/* Auth */
.auth-body {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,174,58,0.22), transparent 40%),
    linear-gradient(160deg, #050505, #12141a);
  color: #e8ecf2; font-family: var(--font-body);
}
.auth-card {
  width: min(420px, calc(100% - 2rem));
  background: linear-gradient(170deg, #141416, #0a0a0c);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px; padding: 1.6rem;
}
.auth-card h1 { color: #fff; font-size: 1.6rem; font-family: var(--font-display); }
.auth-card p { color: #aeb6c4; }
.auth-card label { color: #d0d6e0; }
.auth-card input {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: #fff;
}
.auth-card .btn-primary { width: 100%; }

/* App shells */
.app-body {
  background: #eef1f5;
  color: var(--cf-ink);
  font-size: 11px;
  line-height: 1.5;
}
.app-body p { color: var(--cf-muted); }
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.app-sidebar {
  background: #0f1115; color: #d7dde8; padding: 1.25rem 0.85rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  min-width: 0;
}
.app-sidebar .brand {
  color: #fff; margin: 0 0 1.1rem; text-decoration: none;
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  font-weight: 800; font-size: 14px; letter-spacing: 0.01em;
  padding: 0 0.35rem; box-sizing: border-box;
}
.app-sidebar .app-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.2rem;
  width: 100%;
}
.app-sidebar a {
  text-decoration: none; color: #c5ccd8; padding: 0.58rem 0.75rem;
  border-radius: 10px; font-weight: 600; font-size: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  line-height: 1.25; width: 100%; box-sizing: border-box;
}
.app-sidebar a .nav-label { min-width: 0; flex: 1 1 auto; }
.app-sidebar a .nav-meta {
  margin-left: auto; flex: 0 0 auto; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: #9aa3b2; font-size: 11px; letter-spacing: 0.01em;
  white-space: nowrap; padding-left: 0.5rem;
}
.app-sidebar a:hover .nav-meta,
.app-sidebar a.is-active .nav-meta { color: #e8edf5; }
.app-sidebar a.nav-logout { margin-top: 0.65rem; opacity: 0.88; }
.app-sidebar a:hover, .app-sidebar a.is-active { background: rgba(124,174,58,0.16); color: #fff; }
.app-main { padding: 1.4rem 1.5rem 2.5rem; }
.app-top h1 { margin-bottom: 0.2rem; color: var(--cf-ink); font-family: var(--font-display); }
.app-top p { margin-bottom: 1.2rem; }
.app-body .panel {
  background: #fff; border: 1px solid rgba(10,10,10,0.08); color: inherit;
}
.app-body .btn-ghost { border-color: rgba(10,10,10,0.16); color: var(--cf-ink); background: transparent; }
.app-body label { font-size: 11px; }
.app-body .btn { font-size: 11px; }
.app-body .btn-sm { font-size: 10px; }
.app-body input,
.app-body select,
.app-body textarea {
  font-size: 11px;
}
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
table.data th, table.data td { padding: 0.75rem 0.85rem; text-align: left; border-bottom: 1px solid rgba(10,10,10,0.08); font-size: 11px; }
table.data th { background: #f7f8fa; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #5b616b; }
.badge {
  display: inline-flex; border-radius: 999px; padding: 0.2rem 0.55rem;
  font-size: 0.75rem; font-weight: 700; background: #eef2f7; color: #334155;
}
.badge-sent, .badge-unpaid { background: rgba(234,179,8,0.18); color: #854d0e; }
.badge-paid, .badge-accepted { background: rgba(124,174,58,0.18); color: #3f6212; }
.badge-declined { background: rgba(185,28,28,0.12); color: #991b1b; }
.badge-draft { background: #e2e8f0; color: #475569; }
.kpi-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 1.2rem; }
.kpi-grid-sm {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.kpi-grid-sm .kpi { padding: 0.55rem 0.7rem; border-radius: 10px; }
.kpi-grid-sm .kpi span { font-size: 0.72rem; }
.kpi-grid-sm .kpi strong { font-size: 1.15rem; }
.kpi { background: #fff; border: 1px solid rgba(10,10,10,0.08); border-radius: 14px; padding: 1rem; }
.kpi strong { display: block; font-size: 1.6rem; color: var(--cf-black); }
.stack { display: grid; gap: 0.85rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.line-items { display: grid; gap: 0.55rem; }
.line-item { display: grid; grid-template-columns: 2fr 0.7fr 0.9fr; gap: 0.5rem; }
.doc-toolbar { margin-bottom: 0.35rem; }
.doc-rules-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #5b616b;
}
.doc-mark-paid-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.badge-cancel_requested { background: rgba(234,179,8,0.18); color: #854d0e; }
.badge-cancel_scheduled { background: rgba(124,174,58,0.12); color: #3f6212; }
.badge-active { background: rgba(124,174,58,0.18); color: #3f6212; }
.badge-pending_first_payment { background: rgba(59,130,246,0.15); color: #1e40af; }
.badge-past_due { background: rgba(234,179,8,0.22); color: #854d0e; }
.badge-on_hold { background: rgba(185,28,28,0.12); color: #991b1b; }
.admin-stripe-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Customer profile card — used on customer view + new document forms */
.customer-card {
  background: #fff;
  border: 1px solid #cfcfcf;
  margin-bottom: 1rem;
  color: #111;
}
.customer-card * { color: #111; box-sizing: border-box; }
.customer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #111;
}
.customer-card-top * { color: #fff; }
.customer-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb !important;
}
.customer-card-name {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.customer-card-contact {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #ddd !important;
}
.customer-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.customer-card-badges .badge {
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.customer-card-badges .badge-paid {
  background: rgba(124,174,58,0.28);
  border-color: rgba(124,174,58,0.55);
  color: #e8f6cf;
}
.customer-card-badges .badge-cancelled {
  background: rgba(185,28,28,0.25);
  border-color: rgba(248,113,113,0.45);
  color: #fecaca;
}
.customer-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.customer-card-block {
  padding: 0.95rem 1.1rem;
  min-height: 110px;
  border-right: 1px solid #cfcfcf;
}
.customer-card-block:last-child { border-right: none; }
.customer-card-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.35rem;
  color: #111;
}
.customer-card-block p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #111;
  line-height: 1.4;
}
.customer-card-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.customer-card-link:hover { color: #3f6212; }
.customer-card-empty { color: #666 !important; font-style: italic; }
.customer-card--compact .customer-card-name { font-size: 1.15rem; }
.customer-card--compact .customer-card-block { min-height: 0; }
.form-hint {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: #555;
}
.form-hint a { color: #3f6212; font-weight: 700; }
@media (max-width: 720px) {
  .customer-card-top { flex-direction: column; }
  .customer-card-badges { justify-content: flex-start; }
  .customer-card-grid { grid-template-columns: 1fr; }
  .customer-card-block { border-right: none; border-bottom: 1px solid #cfcfcf; }
  .customer-card-block:last-child { border-bottom: none; }
}

/* Professional invoice sheet — match PDF: 11px, tight rows, lime accents */
.invoice {
  --inv-ink: #2d2e32;
  --inv-lime: #8dc63f;
  --inv-muted: #6b717c;
  background: #fff;
  color: var(--inv-ink);
  border: 1px solid #e4e4e4;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(20, 22, 26, 0.06);
  font-family: "DM Sans", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.4;
}
.invoice * { box-sizing: border-box; }
.invoice a { color: inherit; }
.invoice p,
.invoice td,
.invoice th,
.invoice span,
.invoice strong,
.invoice h3 {
  color: var(--inv-ink);
}
.invoice p { margin: 0 0 0.15rem; font-size: 11px; }

.invoice-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 16px 16px 8px;
  background: #fff;
}
.invoice-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}
.invoice-brand-meta {
  margin: 6px 0 0 !important;
  max-width: 28rem;
  color: var(--inv-muted) !important;
  font-size: 9px !important;
  line-height: 1.45;
}
.invoice-identity { text-align: right; }
.invoice-kicker {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #111 !important;
}
.invoice-status {
  display: inline-flex;
  align-items: center;
  margin: 6px 0 0 !important;
  padding: 0;
  border: 0;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--inv-ink) !important;
}
.invoice-status.is-paid { background: transparent; border: 0; color: #3f6212 !important; }
.invoice-status.is-overdue { background: transparent; border: 0; color: #8a1f1f !important; }
.invoice-status.is-cancelled { background: transparent; color: #5b616b !important; }
.invoice-status.is-draft { background: transparent; color: #5b616b !important; }

.invoice-accent {
  height: 9px;
  width: 72%;
  margin: 0 0 4px;
  background: var(--inv-lime);
}

.invoice-meta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 12px 16px;
}
.invoice-to h3,
.invoice-notes h3,
.invoice-bank h3,
.invoice-payments h3 {
  margin: 8px 0 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: #111;
}
.invoice-to h3 { margin-top: 0; }
.invoice-party-name {
  margin: 0 0 2px !important;
  font-weight: 700;
  color: #111 !important;
  font-size: 12px !important;
}
.invoice-ids {
  display: grid;
  gap: 2px;
  justify-items: stretch;
  text-align: right;
  width: 100%;
}
.invoice-ids > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.invoice-ids span {
  font-size: 11px;
  font-weight: 400;
  color: var(--inv-muted);
  text-align: left;
}
.invoice-ids strong {
  min-width: 0;
  font-size: 11px;
  color: #111;
}

.invoice-lines {
  width: calc(100% - 32px);
  margin: 0 16px;
  border-collapse: collapse;
  border: 1px solid #d8d8d8;
}
.invoice-lines th,
.invoice-lines td {
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.invoice-lines th {
  background: #2d2e32;
  color: #fff !important;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.invoice-lines td { color: #111; font-size: 11px; border-bottom: 1px solid #ececec; }
.invoice-lines tbody tr:nth-child(even) td { background: #f6f6f6; }
.invoice-lines .sl { width: 3.2rem; }
.invoice-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-lines tbody tr:last-child td { border-bottom: none; }

.invoice-end {
  display: grid;
  grid-template-columns: 56% 1fr;
  gap: 8%;
  padding: 12px 16px;
  align-items: start;
}
.invoice-thanks {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  font-weight: 700;
  color: #111 !important;
}
.invoice-notes p,
.invoice-explain { color: #22262e; line-height: 1.45; }
.invoice-explain { margin-top: 0.75rem !important; }
.invoice-paid-note {
  display: block;
  margin: 6px 0 0 !important;
  padding: 0;
  background: transparent;
  color: #3f6212 !important;
  font-weight: 700;
}
.invoice-bank { margin-top: 1rem; }
.invoice-ref { margin-top: 0.45rem !important; color: #16181d !important; }
.invoice-kv {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.invoice-kv th,
.invoice-kv td {
  padding: 2px 0;
  font-size: 11px;
  vertical-align: top;
  border: 0;
  background: transparent;
}
.invoice-kv th {
  width: 38%;
  text-align: left;
  font-weight: 400;
  color: #6b717c !important;
  padding-right: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.invoice-kv td {
  text-align: right;
  font-weight: 700;
  color: #111 !important;
  white-space: nowrap;
}
.invoice-totals-card {
  display: grid;
  gap: 4px;
  padding: 0;
}
.invoice-totals-card > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #22262e;
  font-size: 11px;
}
.invoice-totals-card .is-total {
  margin-top: 4px;
  padding: 8px 10px;
  background: var(--inv-lime);
  color: #111 !important;
  font-weight: 700;
}
.invoice-totals-card .is-total span { color: #111 !important; }
.invoice-totals-card .is-due {
  padding: 8px 0 0;
  color: var(--inv-ink);
  font-weight: 700;
}
.invoice-totals-card .is-due,
.invoice-totals-card .is-due span { color: var(--inv-ink) !important; }
.invoice-totals-card .is-due.is-paid { color: #3f6212; }

.invoice-payments { padding: 0 1.6rem 1.15rem; }
.invoice-payments table { width: 100%; border-collapse: collapse; border: 1px solid #d8d8d8; }
.invoice-payments th,
.invoice-payments td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ececec;
  color: #1a1d23;
  font-size: 0.9rem;
}
.invoice-payments th {
  background: #2d2e32;
  color: #fff !important;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.invoice-colophon {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 8px 16px 10px;
  border-top: 3px solid var(--inv-lime);
  font-size: 9px;
  color: var(--inv-muted);
}
.invoice-colophon-contact { margin: 0 !important; color: var(--inv-muted) !important; font-size: 9px !important; }
.invoice-sign {
  margin: 0 !important;
  min-width: 26%;
  padding-top: 14px;
  border-top: 1px solid #b9b9b9;
  text-align: right;
  font-size: 9px !important;
  color: var(--inv-muted) !important;
}

.invoice-public-page {
  width: min(920px, calc(100% - 1.6rem));
  margin: 1.6rem auto 3rem;
}
.doc-toolbar--public {
  margin-bottom: 1rem;
  justify-content: flex-end;
}
body.public-invoice {
  background: #ececec !important;
  color: #1a1d23;
}
body.public-invoice .site-header {
  position: static;
  background: #0b0c0e;
}
body.public-invoice .nav-wrap { min-height: 56px; }
body.public-invoice main { background: transparent; padding-top: 0.5rem; }
body.public-invoice .site-footer { margin-top: 0; }
.invoice-site-footer {
  padding: 1rem 0 1.6rem;
  color: #6b717c;
  font-size: 11px;
  text-align: center;
}
body.public-invoice .doc-toolbar--public {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #d8d8d8;
}
body.public-invoice .doc-toolbar--public .btn-ghost {
  background: #fff;
  color: #111 !important;
  border: 1px solid #c5c5c5;
}
body.public-invoice .doc-toolbar--public .btn-ghost:hover {
  border-color: #111;
  color: #111 !important;
}
body.public-invoice .doc-toolbar--public .btn-primary {
  background: #8dc63f;
  color: #111;
}
body.public-invoice .invoice p,
body.public-invoice .invoice td,
body.public-invoice .invoice span,
body.public-invoice .invoice strong,
body.public-invoice .invoice h3 {
  color: #2d2e32;
}
body.public-invoice .invoice-kicker { color: #111 !important; }
body.public-invoice .invoice-brand-meta,
body.public-invoice .invoice-colophon,
body.public-invoice .invoice-colophon-contact,
body.public-invoice .invoice-sign { color: #6b717c !important; }
body.public-invoice .invoice-status { color: #2d2e32 !important; }
body.public-invoice .invoice-status.is-paid { color: #2b4a0c !important; }
body.public-invoice .invoice-lines th,
body.public-invoice .invoice-payments th { color: #fff !important; }
body.public-invoice .invoice-paid-note { color: #2b4a0c !important; }
body.public-invoice .invoice-kv th { color: #6b717c !important; }
body.public-invoice .invoice-kv td { color: #111 !important; }
body.public-invoice .invoice-totals-card .is-total,
body.public-invoice .invoice-totals-card .is-total span { color: #111 !important; }

@media (max-width: 800px) {
  .invoice-masthead,
  .invoice-meta,
  .invoice-end { grid-template-columns: 1fr; }
  .invoice-masthead { flex-direction: column; }
  .invoice-identity,
  .invoice-ids { text-align: left; justify-items: start; }
  .invoice-accent { width: 100%; }
  .invoice-lines { width: calc(100% - 2rem); margin: 0 1rem; }
  .invoice-colophon { flex-direction: column; align-items: flex-start; }
  .doc-mark-paid-grid { grid-template-columns: 1fr; }
}

/* Admin — sharp professional UI */
.app-body {
  --admin-radius: 0;
  --admin-border: rgba(10,10,10,0.12);
}
.app-body .btn {
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: none;
  box-shadow: none;
}
.app-body .btn:hover { transform: none; }
.app-body .btn-primary {
  background: var(--cf-lime);
  border-color: #5a8a1a;
  color: #0a0a0a;
}
.app-body .btn-primary:hover { background: var(--cf-lime-bright); }
.app-body .btn-ghost {
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--cf-ink);
}
.app-body .btn-ghost:hover { background: #f3f4f6; border-color: rgba(10,10,10,0.22); }
.app-body .btn-danger {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}
.app-body .btn-danger:hover { background: #991b1b; }
.app-body .btn-success {
  background: #15803d;
  border-color: #166534;
  color: #fff;
}
.app-body .btn-success:hover { background: #166534; }
.app-body .panel {
  border-radius: 0;
  border: 1px solid var(--admin-border);
  padding: 1.25rem;
}
.app-body .app-sidebar a { border-radius: 0; border-left: 3px solid transparent; font-size: 12px; }
.app-body .app-sidebar a .nav-meta { font-size: 11px; }
.app-body .app-sidebar a:hover,
.app-body .app-sidebar a.is-active {
  background: rgba(124,174,58,0.14);
  border-left-color: var(--cf-lime);
}
.app-body table.data { border-radius: 0; border: 1px solid var(--admin-border); }
.app-body table.data th {
  background: #e8ebef;
  color: #1e293b;
  font-weight: 700;
  border-bottom: 2px solid rgba(10,10,10,0.1);
}
.app-body table.data tr.row-overdue td { background: #fef2f2; }
.app-body table.data tr.row-overdue td:first-child { box-shadow: inset 3px 0 0 #b91c1c; }
.app-body .badge { border-radius: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; }
.app-body .badge-overdue { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.app-body .kpi { border-radius: 0; }
.app-body .alert { border-radius: 0; }
.app-body .form-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-body .form-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: #334155; }
.app-body .form-grid input,
.app-body .form-grid select,
.app-body .form-grid textarea {
  border-radius: 0;
  border: 1px solid var(--admin-border);
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.app-body .form-grid .span-2 { grid-column: span 2; }
.app-body .form-check {
  grid-column: span 2;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--admin-border);
  background: #f9fafb;
}
.app-body .form-check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.app-body .form-check-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
}
.app-body .form-actions { padding-top: 0.25rem; }
.app-body .hub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.app-body .hub-section { margin-bottom: 1.2rem; }
.app-body .hub-section h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.app-body .form-section { grid-column: span 2; margin: 0.5rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--admin-border); }
.app-body .form-section h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--cf-ink); }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--admin-border);
}
.admin-tabs .btn { text-decoration: none; }
.empty-state {
  padding: 1.75rem 1.25rem;
  background: #f8fafc;
  border: 1px dashed var(--admin-border);
  text-align: left;
}
.empty-state-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cf-ink);
}
.empty-state-copy {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: #64748b;
  font-size: 0.95rem;
}
.sub-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(124,174,58,0.18);
  color: #3f6212;
  font-weight: 800;
  font-size: 0.95rem;
}
.app-body table.customers-table th,
.app-body table.customers-table td,
.app-body table.docs-table th,
.app-body table.docs-table td {
  text-align: center;
  vertical-align: middle;
}
.app-body table.customers-table td .row-actions,
.app-body table.customers-table td:last-child,
.app-body table.docs-table td:last-child {
  text-align: center;
  white-space: nowrap;
}

/* Lead view */
.lead-view {
  background: #fff;
  border: 1px solid var(--admin-border);
  color: #0f172a;
  overflow: hidden;
}
.lead-view-hero {
  padding: 1.35rem 1.4rem 1.15rem;
  border-bottom: 1px solid var(--admin-border);
  background: #f8fafc;
}
.lead-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.lead-view-date {
  font-size: 0.85rem;
  color: #475569;
}
.lead-view-name {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: #0f172a;
  line-height: 1.15;
}
.lead-view-company {
  margin: 0.35rem 0 0;
  color: #334155;
  font-weight: 600;
}
.lead-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--admin-border);
}
.lead-view-tile {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--admin-border);
}
.lead-view-tile:last-child { border-right: none; }
.lead-view-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}
.lead-view-tile p {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}
.lead-text-link {
  color: #0f172a !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.lead-view-message {
  padding: 1.25rem 1.4rem 1.5rem;
}
.lead-view-message h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.lead-view-message-body {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  color: #0f172a;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Subscription detail */
.sub-view { display: grid; gap: 1rem; }
.sub-view-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--admin-border);
}
.sub-view-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.sub-view-hero h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #0f172a;
}
.sub-view-customer { margin: 0 0 0.65rem; color: #334155; font-weight: 600; }
.sub-view-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sub-view-amount {
  min-width: 8rem;
  padding: 0.85rem 1rem;
  background: #0f1218;
  color: #fff;
  text-align: right;
}
.sub-view-amount span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.sub-view-amount strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.55rem;
  line-height: 1;
  color: #fff;
}
.sub-view-amount small { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.sub-view-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.sub-view-fact {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--admin-border);
  text-align: center;
}
.sub-view-fact span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.sub-view-fact strong { color: #0f172a; font-size: 0.98rem; }
.sub-view-actions { margin: 0; }
.sub-view-panels { display: grid; gap: 1rem; }
@media (max-width: 900px) {
  .sub-view-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portal account */
.account-page {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.account-profile,
.account-block {
  width: 100%;
}
.account-profile {
  background: #fff;
  border: 1px solid var(--admin-border);
  overflow: hidden;
}
.account-profile-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 1.35rem 1.15rem;
  background:
    linear-gradient(120deg, rgba(124,174,58,0.14) 0%, rgba(124,174,58,0.03) 38%, #fff 70%),
    #fff;
  border-bottom: 1px solid var(--admin-border);
}
.account-avatar {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #0f1218;
  color: var(--cf-lime-bright);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.account-profile-copy { flex: 1; min-width: 200px; }
.account-chip {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.2rem 0.5rem;
  background: rgba(15,18,24,0.06);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  color: var(--cf-ink);
  line-height: 1.1;
}
.account-company {
  margin: 0 0 0.55rem;
  font-weight: 600;
  color: #475569;
}
.account-stat {
  margin-left: auto;
  min-width: 5.5rem;
  padding: 0.75rem 0.9rem;
  background: #0f1218;
  color: #fff;
  text-align: right;
}
.account-stat span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.account-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--cf-lime-bright);
}
.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.account-info-tile {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--admin-border);
  border-bottom: 1px solid var(--admin-border);
}
.account-info-tile:nth-child(2n) { border-right: none; }
.account-info-tile--wide { grid-column: 1 / -1; border-right: none; }
.account-info-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cf-muted);
}
.account-info-tile p {
  margin: 0.15rem 0;
  color: var(--cf-ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.account-info-tile a {
  color: var(--cf-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(124,174,58,0.45);
}
.account-info-tile a:hover { color: #3f6212; }
.account-muted { color: var(--cf-muted) !important; font-weight: 500 !important; }
.account-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  text-align: center;
}
.account-section-head > div { text-align: center; margin: 0 auto; width: 100%; }
.account-section-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  color: var(--cf-ink);
}
.account-section-head p {
  margin: 0 auto;
  font-size: 0.9rem;
  max-width: 36rem;
}
.account-empty {
  padding: 1.5rem 1.25rem !important;
  background: #f8fafc !important;
}
.account-empty-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cf-ink);
}
.service-card-grid { display: grid; gap: 1rem; }
.service-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid var(--admin-border);
}
.service-card-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cf-muted);
}
.service-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.service-card-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--cf-ink);
}
.service-card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cf-ink);
}
.service-card-price span {
  margin-left: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cf-muted);
}
.service-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}
.service-fact {
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  text-align: center;
}
.service-fact span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cf-muted);
}
.service-fact strong {
  font-size: 0.98rem;
  color: var(--cf-ink);
}
.service-status-msg {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border-left: 3px solid var(--cf-lime);
  color: #334155;
  font-size: 0.92rem;
}
.service-status-msg p { margin: 0 0 0.65rem; color: inherit; }
.service-status-msg.is-warn { border-left-color: #ca8a04; background: #fffbeb; color: #854d0e; }
.service-status-msg.is-danger { border-left-color: #b91c1c; background: #fef2f2; color: #991b1b; }
.service-notes-block {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--admin-border);
}
.service-notes-head h4 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  color: var(--cf-ink);
}
.service-notes-head span {
  display: block;
  font-size: 0.82rem;
  color: var(--cf-muted);
}
.service-notes-display {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  color: #334155;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.5;
}
.service-notes-empty { margin: 0; font-size: 0.9rem; color: var(--cf-muted); }
.service-details {
  border: 1px solid var(--admin-border);
  background: #fff;
}
.service-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
}
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary::after {
  content: "+";
  float: right;
  color: var(--cf-muted);
  font-weight: 700;
}
.service-details[open] summary::after { content: "–"; }
.service-details.service-cancel summary { color: #64748b; font-weight: 600; }
.service-notes-form {
  display: grid;
  gap: 0.65rem;
  padding: 0 0.9rem 0.9rem;
}
.service-notes-form textarea {
  width: 100%;
  border: 1px solid var(--admin-border);
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 96px;
}
.service-notes-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.account-password-panel {
  background: #fff;
  border: 1px solid var(--admin-border);
  padding: 1.25rem 1.35rem;
  width: 100%;
  max-width: none;
}
.account-password-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  margin: 0 auto;
}
.account-password-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
}
.account-password-form input {
  border: 1px solid var(--admin-border);
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.account-password-form .form-actions {
  grid-column: 1 / -1;
  text-align: center;
}
.service-payments {
  padding-top: 0.25rem;
  border-top: 1px solid var(--admin-border);
}
.service-payments h4 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.service-payment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.service-payment-list li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  font-size: 0.88rem;
  color: #0f172a;
  text-align: center;
}
.service-card-head,
.service-notes-head {
  text-align: center;
  justify-content: center;
}
.service-card-head { flex-direction: column; align-items: center; }
.service-notes-block { text-align: center; }
.service-notes-display { text-align: left; }
@media (max-width: 720px) {
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-info-tile { border-right: none; }
  .account-stat { margin-left: 0; width: 100%; text-align: left; }
  .account-password-form { grid-template-columns: 1fr; }
  .service-payment-list li { grid-template-columns: 1fr; text-align: center; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-visual { display: none; }
  .scale-grid, .service-blocks, .work-feature, .contact-layout, .footer-top, .kpi-grid, .range-shots {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .nav-toggle { display: inline-block; }
  .public-site .brand-logo {
    height: 36px;
    max-width: min(200px, 48vw);
  }
  .public-site .site-nav {
    display: none; position: absolute; right: 1.2rem; top: 68px;
    flex-direction: column; align-items: stretch;
    background: #111216; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 0.75rem; min-width: 220px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  }
  .public-site .site-nav.is-open { display: flex; }
  .public-site .nav-link,
  .public-site .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .app-sidebar .app-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .line-item { grid-template-columns: 1fr; }
  .brand-lockup { font-size: clamp(2.6rem, 14vw, 4.5rem); }
}

/* —— Website audit product —— */
.audit-buy-section { padding-top: 2rem; }
.audit-buy-card {
  border-color: rgba(124, 174, 58, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 174, 58, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.025);
}
.audit-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.35rem;
}
.audit-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.audit-price-note {
  margin: 0;
  color: #a8b0bd;
  font-size: 0.88rem;
}
.audit-fine {
  margin: 0.15rem 0 0;
  color: #8b93a1;
  font-size: 0.82rem;
  line-height: 1.45;
}
.audit-aside-note {
  margin: 1.1rem 0 0;
  color: #a8b0bd;
  font-size: 0.92rem;
  line-height: 1.45;
}
.audit-subhead {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
}
.audit-cta-line {
  margin: 1.25rem 0 0;
  color: #a8b0bd;
}
.audit-cta-line a {
  color: var(--cf-lime-bright);
  font-weight: 700;
  text-decoration: none;
}
.audit-cta-line a:hover { text-decoration: underline; }
.audit-success-card {
  max-width: 28rem;
  display: grid;
  gap: 0.85rem;
}
.audit-success-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cf-lime);
  line-height: 1;
  margin: 0;
}

/* Portal care contracts — override muted portal paragraph styles */
.app-body .care-section-head {
  margin-bottom: 1rem;
}
.app-body .care-section-head h2 {
  margin: 0 0 0.3rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}
.app-body .care-section-head p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.app-body .care-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}
.app-body .care-strong,
.app-body strong.care-strong {
  color: #0f172a;
  font-weight: 800;
}
.app-body .care-contracts-table td {
  color: #1e293b;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}
.app-body .care-contracts-table th {
  text-align: left;
}
.app-body .care-contracts-table td:last-child,
.app-body .care-actions-cell {
  text-align: right;
  white-space: nowrap;
}
.app-body .care-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.app-body .care-contracts-panel .btn,
.app-body .care-contract-page .btn {
  font-size: 12px;
  padding: 0.55rem 0.95rem;
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-body .care-contract-page {
  display: grid;
  gap: 1rem;
}
.app-body .care-contract-toolbar {
  margin-bottom: 0;
}
.app-body .care-contract-hero h1 {
  color: #0f172a;
}
.app-body .care-contract-hero .sub-view-customer {
  color: #334155;
}
.app-body .care-contract-facts {
  text-align: right;
  min-width: 11rem;
}
.app-body .care-contract-facts span,
.app-body .sub-view-amount.care-contract-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-body .care-contract-facts strong,
.app-body .sub-view-amount.care-contract-facts strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin: 0.15rem 0 0.65rem;
}
.app-body .care-fact-gap { margin-top: 0.15rem; }

/* Care hub */
.app-body .care-hub {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.app-body .care-hub-switch {
  margin: 0;
}
.app-body .care-hub-switch label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #0f172a;
  max-width: 28rem;
}
.app-body .care-hub-plan {
  margin: 0;
}
.app-body .care-hub-note {
  margin: 0.65rem 0 0;
  color: #475569;
  font-size: 0.92rem;
}
.app-body .care-hub-section {
  margin: 0;
}
.app-body .care-subhead {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.app-body .care-muted {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  white-space: pre-wrap;
}
.app-body .care-empty-panel h2 {
  margin: 0 0 0.35rem;
}
.app-body .care-hours-meter {
  margin-top: 0.85rem;
  height: 0.45rem;
  background: #e2e8f0;
  overflow: hidden;
}
.app-body .care-hours-meter-fill {
  height: 100%;
  background: #0f172a;
  transition: width 0.25s ease;
}

/* Site access vault */
.app-body .care-vault {
  display: grid;
  gap: 0.85rem;
}
.app-body .care-vault-banner {
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border-left: 3px solid #0f172a;
}
.app-body .care-vault-banner strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.app-body .care-vault-banner p {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}
.app-body .care-vault-password {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.app-body .care-vault-password input {
  flex: 1;
  min-width: 12rem;
}

/* New care contract form */
.app-body .contract-create {
  display: grid;
  gap: 1rem;
}
.app-body .contract-create-hero {
  margin: 0;
}
.app-body .contract-create-grid {
  display: grid;
  gap: 1rem;
}
.app-body .contract-create-section {
  margin: 0;
}
.app-body .contract-create-section .care-section-head {
  margin-bottom: 1rem;
}
.app-body .contract-create-date-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.app-body .contract-create-date-card {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--admin-border, #e2e8f0);
}
.app-body .contract-create-date-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.app-body .contract-create-date-card strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 1.05rem;
}
.app-body .contract-create-date-card small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.82rem;
}
.app-body .contract-same-date-warn {
  margin: 0.75rem 0 0;
  color: #b45309;
}
.app-body .contract-hosting-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.app-body .contract-hosting-choice {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--admin-border, #e2e8f0);
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  color: #0f172a;
}
.app-body .contract-hosting-choice.is-selected,
.app-body .contract-hosting-choice:has(input:checked) {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #0f172a;
}
.app-body .contract-hosting-choice input[type="radio"] {
  grid-row: 1 / span 2;
  margin: 0.15rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: #0f172a;
}
.app-body .contract-hosting-choice-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.app-body .contract-hosting-choice-copy {
  display: block;
  grid-column: 2;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}
.app-body .contract-create-actions {
  margin: 0;
  padding-top: 0.25rem;
}
.app-body .care-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--admin-border, #e2e8f0);
}
.app-body .care-home-cta-main {
  flex: 1 1 16rem;
  min-width: 0;
}
.app-body .care-home-cta-main h2 {
  margin: 0.15rem 0 0.35rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.app-body .care-home-cta-main > p {
  margin: 0;
  color: #475569;
  max-width: 36rem;
}
.app-body .care-home-cta-meta {
  margin-top: 0.55rem !important;
  font-weight: 600;
  color: #0f172a !important;
}
.app-body .care-home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Portal account hub */
.app-body .account-hub {
  display: grid;
  gap: 1rem;
}
.app-body .account-hub-hero {
  margin: 0;
}
.app-body .account-hub-facts {
  margin: 0;
}
.app-body .account-hub-actions {
  margin: 0;
}
.app-body .account-hub-section {
  margin: 0;
}
.app-body .account-service-list {
  display: grid;
  gap: 1rem;
}
.app-body .account-service-card {
  border: 1px solid var(--admin-border, #e2e8f0);
  background: #fff;
  padding: 1rem 1.1rem;
}
.app-body .account-service-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.app-body .account-service-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.app-body .account-service-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
}
.app-body .account-service-card-side {
  text-align: right;
}
.app-body .account-service-price {
  margin: 0.35rem 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}
.app-body .account-service-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}
.app-body .account-service-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.app-body .account-service-facts span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.app-body .account-service-facts strong {
  display: block;
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 0.95rem;
}
.app-body .account-service-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
}
.app-body .account-service-note.is-warn {
  background: #fff7ed;
  color: #9a3412;
}
.app-body .account-service-note.is-danger {
  background: #fef2f2;
  color: #991b1b;
}
.app-body .account-service-payments h4,
.app-body .account-service-details summary {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #0f172a;
}
.app-body .account-service-details {
  margin-top: 0.85rem;
  border-top: 1px solid var(--admin-border, #e2e8f0);
  padding-top: 0.75rem;
}
.app-body .account-service-details summary {
  cursor: pointer;
  font-weight: 700;
}
.app-body .account-service-notes {
  white-space: pre-wrap;
  color: #334155;
  font-size: 0.9rem;
}
.app-body .account-security-form {
  max-width: 36rem;
}
@media (max-width: 800px) {
  .app-body .account-service-facts {
    grid-template-columns: 1fr;
  }
  .app-body .account-service-card-side {
    text-align: left;
  }
}
@media (max-width: 800px) {
  .app-body .contract-create-date-cards,
  .app-body .contract-hosting-choices {
    grid-template-columns: 1fr;
  }
}
.app-body .care-contract-frame-wrap {
  border: 1px solid var(--admin-border);
  background: #e8ecf1;
  min-height: 72vh;
}
.app-body .care-contract-frame {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
  background: #fff;
}
.app-body .care-contract-frame-fallback {
  margin: 0.75rem 0 0;
  color: #475569;
  font-size: 12px;
}
.app-body .care-contract-frame-fallback a {
  color: #1e40af;
  font-weight: 700;
}
.app-body .care-sign-form {
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
}
.app-body .care-sign-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}
.app-body .care-sign-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--admin-border);
  border-radius: 0;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}
.app-body .care-sign-form .btn {
  justify-self: start;
  font-size: 13px;
  padding: 0.7rem 1.15rem;
}
@media (max-width: 700px) {
  .app-body .care-contract-facts { text-align: left; }
  .app-body .care-contract-frame-wrap,
  .app-body .care-contract-frame { min-height: 55vh; }
  .app-body .care-actions-cell { justify-content: flex-start; }
}

/* Care Hub / subscription / filter tabs — segmented control */
.app-body .care-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 3px;
  background: #dfe6ef;
  border: 1px solid #c5ced9;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.app-body .care-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  min-height: 2.35rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #475569 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.app-body .care-tab:link,
.app-body .care-tab:visited,
.app-body .care-tab:active {
  color: #475569 !important;
  text-decoration: none !important;
}
.app-body .care-tab + .care-tab {
  margin-left: 2px;
}
.app-body .care-tab:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.55);
}
.app-body .care-tab.is-active,
.app-body .care-tab.is-active:link,
.app-body .care-tab.is-active:visited,
.app-body .care-tab.is-active:hover,
.app-body .care-tab.is-active:active {
  color: #0f172a !important;
  background: #fff;
  border-color: #b8c4d4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.app-body .list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.app-body .list-toolbar-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}
.app-body .care-muted {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}
.app-body .care-empty {
  color: #64748b;
  margin: 0;
}
.app-body .care-section-head {
  margin-bottom: 1rem;
}
.app-body .care-section-head h2 {
  margin: 0 0 0.35rem;
}
.app-body .care-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}
.app-body .care-hub-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.app-body .care-hub-stat {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.app-body .care-hub-stat span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.app-body .care-hub-stat strong {
  font-size: 1.15rem;
  color: #0f172a;
}
.app-body .care-subhead {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}
.app-body .care-hours-meter {
  height: 8px;
  background: #e2e8f0;
  margin-top: 0.85rem;
  overflow: hidden;
}
.app-body .care-hours-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #0369a1);
  min-width: 0;
}
.app-body .care-period-list {
  display: grid;
  gap: 1rem;
}
.app-body .care-period-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem 1.1rem;
}
.app-body .care-period-card.is-current {
  background: #fff;
  border-color: #94a3b8;
}
.app-body .care-period-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.app-body .care-period-card-head h3 {
  margin: 0;
  font-size: 1rem;
}
.app-body .care-period-card-head span,
.app-body .care-period-hours {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
}
.app-body .care-period-logs {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.app-body .care-period-logs li {
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.app-body .care-period-logs strong {
  margin-right: 0.5rem;
}
.app-body .care-period-logs span {
  color: #64748b;
  font-size: 0.82rem;
}
.app-body .care-period-logs p {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.9rem;
}

/* Work log checkbox UI (replace stacked default checks) */
.app-body .work-log-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.25rem 0 0.5rem;
}
.app-body .work-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #dbe3ee;
  background: #fff;
  cursor: pointer;
  font-weight: 600 !important;
  color: #0f172a;
  line-height: 1.3;
}
.app-body .work-check span {
  display: block;
  font-size: 0.9rem;
}
.app-body .work-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0369a1;
}
.app-body .work-check:has(input:checked) {
  border-color: #0284c7;
  background: #f0f9ff;
}
.app-body .wr-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.app-body .wr-file-list li + li {
  margin-top: 0.2rem;
}

/* Work request cards (subscription / admin) */
.app-body .wr-list {
  display: grid;
  gap: 1rem;
}
.app-body .wr-card {
  border: 1px solid #c5ced9;
  background: #fff;
}
.app-body .wr-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.app-body .wr-card-title h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  color: #0f172a;
}
.app-body .wr-card-title time {
  color: #64748b;
  font-size: 0.82rem;
}
.app-body .wr-card-body {
  padding: 1rem 1.15rem;
}
.app-body .wr-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.app-body .wr-meta-item {
  margin: 0;
}
.app-body .wr-meta-item dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.app-body .wr-meta-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: #0f172a;
}
.app-body .wr-meta-item dd a {
  display: block;
  margin-top: 0.15rem;
  color: #0369a1;
  font-size: 0.85rem;
  text-decoration: none;
}
.app-body .wr-meta-item dd a:hover {
  text-decoration: underline;
}
.app-body .wr-list > .wr-card + .wr-card {
  margin-top: 0;
}
.app-body .wr-message {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.app-body .wr-files {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}
.app-body .wr-files-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.4rem;
}
.app-body .wr-card-update {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.app-body .wr-card-update h4 {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.app-body .wr-update-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 44rem;
}
.app-body .wr-update-form .span-2 {
  grid-column: span 2;
}
.app-body .wr-update-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.app-body .wr-update-form select,
.app-body .wr-update-form input[type="number"],
.app-body .wr-update-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5ced9;
  background: #fff;
  font-size: 13px;
  color: #0f172a;
}
.app-body .wr-update-form textarea {
  min-height: 5rem;
  resize: vertical;
}
.app-body .wr-update-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 0.15rem;
}
.app-body .work-check-inline {
  flex: 1 1 16rem;
  max-width: 100%;
}
@media (max-width: 720px) {
  .app-body .care-hub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-body .work-log-options {
    grid-template-columns: 1fr;
  }
  .app-body .care-tabs {
    flex-wrap: wrap;
    width: 100%;
  }
  .app-body .care-tab {
    flex: 1 1 auto;
    padding: 0.5rem 0.65rem;
    font-size: 11px;
  }
  .app-body .care-tab + .care-tab {
    margin-left: 0;
    margin-top: 2px;
  }
  .app-body .wr-update-form {
    grid-template-columns: 1fr;
  }
  .app-body .wr-update-form .span-2 {
    grid-column: span 1;
  }
  .app-body .wr-update-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .app-body .wr-update-actions .btn {
    width: 100%;
  }
  .app-body .wr-meta {
    grid-template-columns: 1fr;
  }
}
