:root {
  --ink: #10272b;
  --muted: #647174;
  --line: #dce6e4;
  --brand: #12343b;
  --brand-2: #1f6f64;
  --accent: #d6a84f;
  --soft: #eef5f3;
  --paper: #f8f4ec;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 52, 59, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfc;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  --header-logo-size: clamp(104px, 7.4vw, 128px);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: calc(var(--header-logo-size) + 10px);
  padding: 5px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(220, 230, 228, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header .social-links {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(68vw, 820px);
  color: var(--brand);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
}

.brand img {
  width: auto;
  height: var(--header-logo-size);
  max-width: min(68vw, 820px);
  object-fit: contain;
  object-position: center;
}

.brand span {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
}

.mobile-menu {
  display: grid;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 14px 22px;
  color: var(--brand);
  background: var(--white);
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
}

.header-social {
  justify-content: center;
}

.social-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.header-action,
.primary-button {
  border: 1px solid var(--brand);
  color: var(--white);
  background: var(--brand);
}

.primary-button:disabled,
.secondary-button:disabled {
  border-color: #c8d1cf;
  color: #71807e;
  background: #e9eeee;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 73px);
  padding: clamp(46px, 7vw, 92px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(9, 38, 43, 0.9), rgba(9, 38, 43, 0.66) 48%, rgba(9, 38, 43, 0.16)),
    url("assets/hero-office.png") center / cover no-repeat;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.hero-contact span,
.hero-contact a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.status-panel,
.service-card,
.work-panel,
.metric,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.panel-topline {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-number {
  margin: 8px 0 18px;
  font-size: 1.8rem;
  font-weight: 800;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--brand-2);
}

dl {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.section,
.contact-band,
.pricing-band {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 6vw, 86px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 22px clamp(18px, 4vw, 42px);
  background: var(--paper);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 184px;
  padding: 22px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.work-panel span,
.contact-band p {
  color: var(--muted);
}

.detail-section {
  background: var(--soft);
}

.detail-grid,
.compliance-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-panel,
.compliance-grid article,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 24px;
}

.detail-panel p,
.detail-panel li,
.compliance-grid p,
.faq-grid p {
  color: var(--muted);
}

.detail-panel ul,
.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.scope-section {
  background: var(--white);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.feature-list {
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-2);
}

.caution-list li::before {
  background: var(--accent);
}

.compliance-section {
  background: var(--paper);
}

.compliance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compliance-grid article {
  min-height: 210px;
  padding: 22px;
}

.compliance-grid a {
  color: var(--brand);
  font-weight: 800;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  padding: 18px 20px;
}

.faq-grid summary {
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.faq-grid p {
  margin: 12px 0 0;
}

.lifestyle-section {
  background: var(--white);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lifestyle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lifestyle-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lifestyle-card div {
  padding: 22px;
}

.lifestyle-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-surface {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  margin: 0 clamp(18px, 6vw, 86px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--brand);
}

.app-sidebar button,
.app-sidebar a,
.app-sidebar span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.app-sidebar button,
.app-sidebar a {
  cursor: pointer;
}

.app-sidebar button.active,
.app-sidebar button:hover,
.app-sidebar a.active,
.app-sidebar a:hover,
.app-sidebar span.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.app-sidebar span {
  color: rgba(255, 255, 255, 0.78);
}

.app-main {
  padding: clamp(22px, 4vw, 38px);
}

.app-title-row,
.metric-row,
.work-grid,
.contact-band,
.pricing-band,
.footer {
  display: grid;
  gap: 18px;
}

.app-title-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6b4a00;
  background: #fff4cf;
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}

.metric {
  padding: 18px;
  box-shadow: none;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-panel {
  padding: 22px;
  box-shadow: none;
}

.check-list,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.check-list li.done::before {
  border-color: var(--brand-2);
  background: var(--brand-2);
}

.timeline li {
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
}

.timeline strong,
.timeline span {
  display: block;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-2);
  font-weight: 800;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  align-items: start;
  background: var(--soft);
}

.pricing-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--white);
  background: var(--brand);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-band .eyebrow,
.pricing-band p {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-band h2 {
  max-width: 820px;
}

.pricing-band .primary-button {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

.pricing-band .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.payment-page {
  background: #fbfdfc;
}

.payment-hero,
.payment-grid {
  display: grid;
  gap: 18px;
  padding: clamp(38px, 6vw, 74px) clamp(18px, 6vw, 86px);
}

.payment-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 38, 43, 0.92), rgba(9, 38, 43, 0.7)),
    url("assets/hero-office.png") center / cover no-repeat;
}

.payment-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.payment-summary-card,
.payment-info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-summary-card {
  padding: 24px;
  color: var(--ink);
}

.payment-summary-card span,
.payment-summary-card p {
  color: var(--muted);
}

.payment-summary-card strong {
  display: block;
  margin: 6px 0;
  color: var(--brand);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.payment-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  align-items: start;
}

.payment-form h2,
.payment-info-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.payment-info-panel {
  padding: 24px;
}

.payment-result {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.payment-result h3 {
  margin-top: 0;
}

.payment-bank-details {
  margin-top: 12px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-weight: 800;
}

.contact-list a,
.contact-list span {
  color: var(--brand);
}

.contact-social {
  margin-top: 16px;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 3px;
}

.intake-band {
  align-items: start;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.disclaimer {
  padding: 22px clamp(18px, 6vw, 86px);
  color: #4e5a5d;
  background: #fff9ea;
  font-size: 0.94rem;
}

.footer {
  grid-template-columns: 1fr auto;
  padding: 24px clamp(18px, 6vw, 86px);
  color: var(--white);
  background: var(--brand);
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer div {
  flex-direction: column;
  gap: 4px;
}

.footer span,
.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer .social-links a,
.footer nav a {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 52px);
}

.legal-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.legal-page section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.auth-page,
.portal-page {
  min-height: calc(100vh - 73px);
  padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(115deg, rgba(238, 245, 243, 0.94), rgba(255, 255, 255, 0.88)),
    url("assets/hero-office.png") center / cover no-repeat;
}

.auth-panel {
  max-width: 560px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel h1,
.portal-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 800;
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.document-view-button {
  width: 100%;
}

.document-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.document-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.document-viewer-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.document-scroll {
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
}

.document-scroll h2 {
  margin-top: 18px;
  font-size: 1.25rem;
}

.document-scroll h2:first-child {
  margin-top: 0;
}

.document-scroll p {
  color: var(--muted);
}

.button-reset {
  font: inherit;
  cursor: pointer;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.portal-hero p {
  max-width: 740px;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.vault-panel {
  grid-column: 1 / -1;
}

.vault-panel form,
.report-panel form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.report-panel {
  grid-column: 1 / -1;
}

.bureau-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bureau-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand);
  background: var(--soft);
  font-weight: 800;
}

.vault-panel input:disabled,
.vault-panel select:disabled {
  color: #899296;
  background: #f3f6f5;
}

.lead-demo-page {
  padding: clamp(42px, 6vw, 72px) clamp(18px, 6vw, 86px);
}

.operations-page {
  min-height: calc(100vh - 73px);
  padding: clamp(28px, 5vw, 58px) clamp(16px, 5vw, 64px);
  background: var(--soft);
}

.operations-hero,
.operations-grid {
  max-width: 1280px;
  margin: 0 auto;
}

.operations-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.operations-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.operations-hero p {
  max-width: 780px;
  color: var(--muted);
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.mission-panel,
.history-panel {
  grid-column: 1 / -1;
}

.section-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-chip.locked {
  color: #6b4a00;
  background: #fff4cf;
}

.mission-statement {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mission-statement div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.mission-statement dd {
  color: var(--muted);
  font-weight: 700;
}

.operations-form {
  display: grid;
  gap: 14px;
}

.kanban-board {
  display: grid;
  gap: 12px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.kanban-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kanban-card h3,
.kanban-card p,
.kanban-card small {
  margin: 0;
}

.kanban-card time,
.kanban-card p,
.kanban-card small,
.history-list span,
.history-list p,
.history-list small,
.empty-state {
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.history-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-list p {
  margin: 8px 0 4px;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  font-weight: 700;
}

.crm-body {
  background: #eef5f3;
}

.crm-shell {
  min-height: 100vh;
}

.crm-loading,
.crm-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  background:
    linear-gradient(115deg, rgba(238, 245, 243, 0.94), rgba(255, 255, 255, 0.88)),
    url("assets/hero-office.png") center / cover no-repeat;
}

.crm-loading[hidden],
.crm-login[hidden],
.crm-app[hidden] {
  display: none !important;
}

.crm-app {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}

.crm-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 20px;
  color: var(--white);
  background: var(--brand);
}

.crm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

.crm-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.crm-sidebar nav {
  display: grid;
  gap: 8px;
}

.crm-sidebar button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.crm-sidebar nav button {
  padding: 0 12px;
}

.crm-sidebar button.active,
.crm-sidebar button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.crm-signout {
  margin-top: auto;
  color: var(--ink) !important;
  background: var(--white) !important;
}

.crm-content {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.crm-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.crm-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.crm-user {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.crm-user span {
  color: var(--muted);
  font-size: 0.88rem;
}

.crm-panel {
  display: none;
}

.crm-panel.active {
  display: block;
}

.crm-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.crm-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.crm-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.crm-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 2.2rem;
}

.crm-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.crm-list {
  display: grid;
  gap: 10px;
}

.crm-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.crm-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.crm-card h3,
.crm-card p {
  margin: 0;
}

.crm-card span,
.crm-card p {
  color: var(--muted);
}

.crm-card footer {
  display: flex;
  justify-content: flex-end;
}

.crm-card .secondary-button {
  min-height: 36px;
}

.crm-dashboard-panel {
  margin-top: 18px;
}

.history-feed .crm-card {
  background: #fffdfa;
}

.workflow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-dots span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
}

.workflow-dots span.done {
  border-color: var(--brand-2);
  color: var(--white);
  background: var(--brand-2);
}

.workflow-dots span.current {
  border-color: var(--accent);
  color: var(--ink);
  background: #fff4cf;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.featured-panel {
  border-color: rgba(31, 111, 100, 0.48);
}

.demo-form {
  box-shadow: none;
  margin-bottom: 18px;
}

.output-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.output-box p {
  margin-bottom: 8px;
}

.code-output pre {
  overflow-x: auto;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .brand {
    min-width: 0;
    font-size: 1.55rem;
  }

  .brand img {
    width: auto;
    height: 92px;
    max-width: 72vw;
  }

  .nav,
  .social-bar,
  .header-action {
    display: none;
  }

  .operation-logout {
    display: inline-flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .contact-band,
  .pricing-band,
  .payment-hero,
  .payment-grid,
  .app-surface {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(9, 38, 43, 0.92), rgba(9, 38, 43, 0.66)),
      url("assets/hero-office.png") center / cover no-repeat;
  }

  .service-grid,
  .metric-row,
  .work-grid,
  .lifestyle-grid,
  .trust-strip,
  .detail-grid,
  .compliance-grid,
  .faq-grid,
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .app-sidebar button,
  .app-sidebar a {
    min-width: 118px;
    text-align: center;
  }

  .portal-hero,
  .portal-grid,
  .operations-hero,
  .operations-grid,
  .mission-statement,
  .crm-app,
  .crm-two-column,
  .crm-metrics,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .crm-sidebar {
    position: static;
    height: auto;
  }

  .crm-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-content {
    padding-top: 20px;
  }

  .crm-topbar {
    display: grid;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .service-grid,
  .metric-row,
  .work-grid,
  .lifestyle-grid,
  .trust-strip,
  .detail-grid,
  .compliance-grid,
  .faq-grid,
  .scope-grid,
    .app-title-row,
    .history-list div,
    .crm-topbar,
    .crm-card div,
    .footer {
    grid-template-columns: 1fr;
  }

  .crm-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-hero,
  .section-title-row,
  .kanban-card div,
  .history-list div {
    display: grid;
  }

  h1 {
    font-size: 3.25rem;
  }
}
