@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #23382c;
  background: #f4f7f2;
  --green: #0b5230;
  --lime: #5fb11c;
  --muted: #6b7d71;
  --border: #dce5dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
.loading {
  padding: 60px;
  text-align: center;
}
a {
  color: var(--green);
}
.btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 10px 16px;
  color: var(--green);
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.danger {
  color: #aa2b2b;
}
.btn.small {
  font-size: 12px;
  padding: 6px 10px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    800 19px Manrope,
    system-ui;
  letter-spacing: 0.04em;
}
.brand img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.brand small {
  display: block;
  font:
    500 10px "DM Sans",
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 25px 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 245px;
  overflow: auto;
}
.sidebar .brand {
  margin: 0 8px 26px;
}
.navgroup {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #83938a;
  margin: 22px 12px 7px;
  font-weight: 700;
}
.navbtn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: #526759;
  font-size: 13px;
}
.navbtn.active {
  background: #e8f2e0;
  color: var(--green);
  font-weight: 700;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  padding: 18px 30px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topbar h1 {
  margin: 0;
  font:
    800 22px Manrope,
    system-ui;
}
.identity {
  font-size: 12px;
  text-align: right;
  color: var(--muted);
}
.identity strong {
  display: block;
  color: #23382c;
}
.content {
  padding: 28px 30px;
  max-width: 1500px;
  margin: auto;
}
.intro {
  margin-bottom: 25px;
}
.intro h2 {
  font: 800 28px Manrope;
  margin: 0 0 7px;
}
.intro p,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px #183e1d03;
}
.card h3 {
  margin: 0 0 16px;
  font: 700 16px Manrope;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.toolbar input {
  max-width: 280px;
}
.toolbar .spacer {
  flex: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font: 800 28px Manrope;
  margin: 8px 0;
}
.stat .accent {
  color: var(--lime);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f7faf5;
  white-space: nowrap;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #edf1eb;
  vertical-align: middle;
}
td {
  max-width: 280px;
  overflow-wrap: anywhere;
}
.badge {
  background: #edf4e8;
  color: var(--green);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-block;
}
.badge.bad {
  background: #fff0ed;
  color: #a44637;
}
.badge.warn {
  background: #fff6dc;
  color: #906e16;
}
.empty {
  text-align: center;
  padding: 45px 15px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdacf;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
  color: #23382c;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #92c962;
  outline-offset: 1px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.formactions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(880px, 95vw);
  max-height: 90vh;
  padding: 28px;
  color: #23382c;
}
dialog::backdrop {
  background: #09281899;
}
dialog h2 {
  font: 800 23px Manrope;
  margin: 0 0 22px;
}
.error {
  color: #a33024;
  background: #fff2ec;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}
.notice {
  color: #6b6024;
  background: #fff9e5;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.barrow {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
}
.barrow i {
  height: 8px;
  border-radius: 4px;
  background: #e9efe5;
  display: block;
  overflow: hidden;
}
.barrow b {
  height: 100%;
  background: var(--lime);
  display: block;
}
.barrow span:last-child {
  text-align: right;
}
.pipeline {
  display: flex;
  overflow: auto;
  gap: 12px;
}
.stage {
  flex: 0 0 225px;
  background: #f0f5eb;
  border-radius: 10px;
  padding: 14px;
}
.stage h4 {
  font-size: 12px;
  margin: 0 0 14px;
}
.leadcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  margin: 8px 0;
  font-size: 12px;
}
.leadcard strong {
  display: block;
  margin-bottom: 8px;
}
.lineitems {
  display: grid;
  gap: 10px;
}
.lineitem {
  display: flex;
  gap: 8px;
  align-items: end;
}
.lineitem > div {
  flex: 1;
  min-width: 70px;
}
.lineitem > div:first-child {
  flex: 2;
}
.detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.detail div {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.detail small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail p {
  white-space: pre-wrap;
  margin: 0;
  font-size: 13px;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
  padding: 35px;
}
.login .brand {
  margin-bottom: 25px;
}
.login input {
  margin-bottom: 16px;
}
.login h1 {
  font: 800 26px Manrope;
}
.publicheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.publicheader nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.publicheader nav a {
  font-size: 13px;
  text-decoration: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  background: #173320;
  color: white;
  padding: 110px 7%;
  display: flex;
  align-items: center;
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 24, 14, 0.88) 0%,
    rgba(5, 24, 14, 0.65) 40%,
    rgba(5, 24, 14, 0.12) 100%
  );
  z-index: -1;
}
.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.hero-watermark {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: clamp(140px, 20vw, 270px);
  opacity: 0.38;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero h1 {
  font: 800 clamp(38px, 5vw, 65px)/1.1 Manrope;
  margin: 16px 0 24px;
  max-width: 750px;
}
.hero p {
  color: #c7ddc4;
  line-height: 1.7;
}
.hero .eyebrow {
  color: #a9df67;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
}
.hero .btn {
  margin: 8px 8px 0 0;
}
.hero .primary {
  background: #a4d35b;
  color: #163d20;
  border-color: #a4d35b;
}
.publicsection {
  padding: 65px 7%;
  max-width: 1600px;
  margin: auto;
}
.publicsection h2 {
  font: 800 33px Manrope;
  margin: 0 0 18px;
}
.publicsection p {
  line-height: 1.7;
  white-space: pre-wrap;
}
.modelgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.model {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.model h3 {
  font: 800 22px Manrope;
}
.model .price {
  font: 800 26px Manrope;
  color: var(--green);
}
.model small {
  color: var(--muted);
}
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.process div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.process span {
  color: var(--lime);
  font-weight: 800;
  margin-right: 15px;
}
.footer {
  background: #07371f;
  color: #d6e6d1;
  padding: 35px 7%;
  display: flex;
  justify-content: space-between;
}
.footer a {
  color: #d6e6d1;
}
.faq {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.qrreview {
  max-width: 650px;
  margin: 7vh auto;
}
.qrreview select {
  margin-bottom: 18px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 13px 20px;
  background: #173e27;
  color: #fff;
  border-radius: 9px;
  display: none;
  z-index: 10;
  max-width: 90vw;
}
.progress {
  width: 100%;
  height: 10px;
  margin: 14px 0;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.mobilemenu {
  display: none;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.day {
  background: #f8faf6;
  border: 1px solid var(--border);
  padding: 8px;
  min-height: 90px;
  font-size: 11px;
}
.day b {
  display: block;
  margin-bottom: 8px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 1050px) {
  .stats,
  .modelgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: 580px;
    padding: 80px 7% 160px;
  }
  .hero-watermark {
    width: 150px;
    right: 5%;
    bottom: 20px;
  }
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(5, 24, 14, 0.85),
      rgba(5, 24, 14, 0.35)
    );
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    z-index: 4;
  }
  .shell.menuopen .sidebar {
    display: block;
    box-shadow: 10px 0 30px #0003;
  }
  .mobilemenu {
    display: inline-block;
  }
  .workspace {
    width: 100%;
  }
  .content {
    padding: 20px 14px;
  }
  .topbar {
    padding: 15px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 22px;
  }
  .formgrid,
  .detail {
    grid-template-columns: 1fr;
  }
  .publicheader nav a:not(.btn) {
    display: none;
  }
  .publicsection {
    padding: 40px 5%;
  }
  .hero {
    padding: 55px 5%;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .lineitem {
    flex-wrap: wrap;
  }
  .modelgrid {
    grid-template-columns: 1fr;
  }
  .footer {
    display: block;
  }
  .identity {
    max-width: 120px;
  }
  .calendar {
    grid-template-columns: repeat(3, 1fr);
  }
}

table {
  min-width: 850px;
}
td:last-child {
  min-width: 250px;
}
.actions {
  min-width: 230px;
}
.lineitems .lineitem {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.password-field {
  position: relative;
  width: 100%;
}
.password-field input {
  padding-right: 72px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  border-radius: 5px;
  padding: 5px 8px;
  background: #edf4e8;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Compact public navigation and editorial footer */
.publicheader {
  padding: 8px 7%;
  min-height: 80px;
  gap: 24px;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.publicheader .brand img {
  width: 60px;
  height: 60px;
}
.public-brand > span {
  font: 800 18px Manrope;
  letter-spacing: 0.12em;
}
.public-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  margin-top: 4px;
  color: var(--muted);
}
.publicheader nav {
  gap: 24px;
}
.publicheader nav a {
  font-size: 12px;
  font-weight: 600;
}
.publicheader nav a:hover {
  color: #4f981b;
}
.nav-login {
  background: none;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 8px 0 8px 22px;
  font-size: 12px;
  color: var(--green);
}
.publicheader .nav-apply {
  background: var(--green);
  color: white;
  padding: 12px 16px;
  border-radius: 5px;
}
.nav-apply span {
  margin-left: 12px;
}
.footer {
  display: block;
  background: #edf1e7;
  color: #173e27;
  padding: 48px 7% 0;
  border-top: 1px solid #d2ddcd;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}
.footer .brand img {
  width: 86px;
  height: 86px;
  mix-blend-mode: multiply;
}
.footer-identity p {
  font: 600 20px/1.4 Manrope;
  margin: 16px 0;
}
.footer a {
  color: #173e27;
  text-decoration: none;
}
.footer-enquire {
  font-size: 12px;
  border-bottom: 1px solid #173e27;
  padding-bottom: 5px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-top: 12px;
}
.footer-column h3 {
  margin: 0 0 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6a7b64;
}
.footer-column a,
.footer-column button {
  font-size: 13px;
}
.footer button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-align: left;
}
.footer a:hover,
.footer button:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #ccd7c7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 11px;
  color: #62745b;
}
.footer-bottom > div {
  display: flex;
  gap: 22px;
}
.footer-bottom button,
.footer-bottom a {
  font-size: 11px;
  color: inherit;
}
@media (max-width: 1050px) {
  .publicheader {
    padding-inline: 4%;
  }
  .publicheader nav {
    gap: 15px;
  }
}
@media (max-width: 750px) {
  .publicheader {
    padding: 8px 5%;
    min-height: 68px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .publicheader .brand img {
    width: 46px;
    height: 46px;
  }
  .public-brand > span {
    font-size: 13px;
  }
  .public-brand small {
    font-size: 7px;
  }
  .publicheader nav {
    margin-left: auto;
    gap: 10px;
  }
  .nav-login {
    border: 0;
    padding: 6px 0;
    font-size: 11px;
  }
  .publicheader nav .nav-apply {
    display: inline-block;
    padding: 10px;
    font-size: 10px;
  }
  .nav-apply span {
    margin-left: 4px;
  }
  .footer {
    padding: 30px 5% 0;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
  .footer .brand img {
    width: 72px;
    height: 72px;
  }
  .footer-identity p {
    font-size: 18px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom > div {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* Franchise footer */
.footer {
  background: #092e20;
  color: #f4f4e9;
  border-top: none;
  padding-top: 0;
}
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 52px 0 46px;
  border-bottom: 1px solid #ffffff24;
}
.footer-kicker {
  display: block;
  font-size: 10px;
  color: #acd96e;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 17px;
}
.footer-cta h2 {
  font: 600 clamp(30px, 4vw, 48px)/1.1 Manrope;
  letter-spacing: -0.04em;
  margin: 0;
}
.footer .footer-cta-link {
  display: flex;
  align-items: center;
  gap: 26px;
  background: #b9dd86;
  color: #153722;
  padding: 17px 21px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.footer-cta-link span {
  font-size: 23px;
  line-height: 1;
}
.footer-main {
  padding-top: 36px;
  padding-bottom: 36px;
  grid-template-columns: 1.7fr 1fr 1fr;
}
.footer .brand {
  display: inline-flex;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
}
.footer .brand img {
  width: 66px;
  height: 66px;
  mix-blend-mode: normal;
}
.footer-identity p {
  font: 400 13px/1.7 "DM Sans";
  color: #b4c6b8;
  margin: 16px 0 20px;
}
.footer a {
  color: #e1ebdc;
}
.footer-enquire {
  border-color: #688471;
  font-size: 11px;
}
.footer-column h3 {
  color: #a1bf9b;
  font-size: 10px;
}
.footer-column a,
.footer-column button {
  font-size: 12px;
}
.footer-column {
  gap: 12px;
}
.footer-bottom {
  border-color: #ffffff24;
  color: #9aafa0;
  padding: 18px 0;
  font-size: 10px;
}
.footer-bottom button,
.footer-bottom a {
  font-size: 10px;
}
@media (max-width: 750px) {
  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 0;
    gap: 24px;
  }
  .footer .footer-cta-link {
    padding: 13px 16px;
    font-size: 12px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
    padding-top: 28px;
  }
  .footer .brand img {
    width: 58px;
    height: 58px;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
}

/* Compact footer spacing */
.footer-cta {
  padding: 26px 0;
  gap: 20px;
}
.footer-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
}
.footer-kicker {
  margin-bottom: 10px;
  font-size: 9px;
}
.footer .footer-cta-link {
  padding: 12px 17px;
}
.footer-main {
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 30px;
}
.footer .brand img {
  width: 52px;
  height: 52px;
}
.footer-identity p {
  margin: 9px 0 12px;
  font-size: 12px;
  line-height: 1.5;
}
.footer-column {
  gap: 9px;
  padding-top: 4px;
}
.footer-column h3 {
  margin-bottom: 4px;
}
.footer-bottom {
  padding: 12px 0;
}
.footer-rights {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
@media (max-width: 750px) {
  .footer-cta {
    padding: 22px 0;
    gap: 16px;
  }
  .footer-cta h2 {
    font-size: 28px;
  }
  .footer-main {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px 16px;
  }
  .footer-identity {
    grid-column: auto;
  }
  .footer-column:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
  }
  .footer-column:last-child h3 {
    width: 100%;
  }
  .footer .brand img {
    width: 46px;
    height: 46px;
  }
  .footer-bottom {
    gap: 10px;
  }
}
