:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #5b667a;
  --line: #d9e1ec;
  --paper: #f4f7fb;
  --white: #ffffff;
  --green: #1d4ed8;
  --green-dark: #0b1f3a;
  --blue: #2563eb;
  --coral: #3b82f6;
  --gold: #b7791f;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Aptos, "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: rgba(7, 18, 36, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.55);
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.84);
}

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

.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 104px clamp(18px, 5vw, 72px) 58px;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 15, 31, 0.94) 0%, rgba(9, 30, 61, 0.68) 44%, rgba(9, 30, 61, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 15, 31, 0.74) 0%, rgba(5, 15, 31, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.hero-logo {
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 38px rgba(5, 15, 31, 0.32);
  object-fit: cover;
}

.eyebrow,
.metric-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfdbfe;
}

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

h1 {
  margin-bottom: 16px;
  max-width: 700px;
  font-size: clamp(2.35rem, 5.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.72rem, 2.9vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 620px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.hero-actions,
.scenario-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.scenario-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 6.4vw, 78px) 0;
}

.muted {
  background: #eaf0f7;
}

.split,
.costs-layout,
.final-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3.8vw, 52px);
  align-items: start;
}

.split > div:first-child p:not(.eyebrow),
.costs-layout > div:first-child p,
.final-grid p {
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-grid,
.tool-list,
.model-panel,
.rule-grid,
.onboarding-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-scope {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
}

.portal-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.portal-summary h3,
.portal-summary p {
  margin-bottom: 0;
}

.portal-summary p:not(.eyebrow) {
  color: var(--muted);
}

.access-list {
  display: grid;
  gap: 8px;
}

.access-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.access-list span {
  color: var(--muted);
}

.feature-card,
.tool-list article,
.estimate-panel,
.model-panel article,
.rule-grid article,
.quote-card,
.onboarding-card,
.portal-card,
.mini-invoice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.feature-card {
  min-height: 148px;
  padding: 18px;
}

.feature-card span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 900;
}

.feature-card p,
.tool-list p,
.timeline-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 24px;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stack-item {
  min-height: 134px;
  padding: 18px;
  border: 1px solid rgba(29, 78, 216, 0.24);
  border-radius: 8px;
  background: var(--white);
}

.stack-item span {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stack-arrow {
  display: none;
}

.tool-list article {
  padding: 18px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-lane {
  min-height: 280px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.kanban-lane h3 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.lead-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.lead-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.channel {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.channel.web {
  background: var(--blue);
}

.channel.social {
  background: var(--coral);
}

.channel.whatsapp {
  background: var(--green);
}

.channel.ads {
  background: var(--gold);
}

.channel.referral {
  background: #334155;
}

.detail-preview,
.quote-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.detail-preview {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-preview p {
  color: var(--muted);
}

.conversation-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.message {
  width: min(86%, 520px);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.94rem;
}

.message.prospect {
  justify-self: start;
  background: #eef2f7;
}

.message.ai {
  justify-self: end;
  background: #dbeafe;
}

.model-panel article,
.rule-grid article,
.onboarding-card {
  min-height: 158px;
  padding: 18px;
}

.onboarding-card span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 900;
}

.payment-note {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.payment-note p {
  color: var(--muted);
}

.mini-invoice {
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini-invoice > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.mini-invoice dl,
.portal-card dl {
  display: grid;
  gap: 1px;
  margin: 0 0 14px;
  background: var(--line);
}

.mini-invoice dl div,
.portal-card dl div {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 12px;
  padding: 10px 0;
  background: var(--white);
}

.mini-invoice dt,
.portal-card dt {
  color: var(--muted);
}

.mini-invoice dd,
.portal-card dd {
  margin: 0;
  font-weight: 800;
}

.quote-card {
  padding: 20px;
  box-shadow: var(--shadow);
}

.quote-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quote-head span {
  color: var(--gold);
  font-weight: 900;
}

.quote-card dl {
  display: grid;
  gap: 1px;
  margin: 0 0 16px;
  background: var(--line);
}

.quote-card dl div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  padding: 11px 0;
  background: var(--white);
}

.quote-card dt {
  color: var(--muted);
}

.quote-card dd {
  margin: 0;
  font-weight: 800;
}

.quote-card .quote-total dd {
  color: var(--green-dark);
  font-size: 1.1rem;
}

.rule-grid article span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-size: 1.35rem;
  font-weight: 900;
}

.portal-card {
  min-height: 218px;
  padding: 18px;
}

.portal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.portal-head strong {
  font-size: 1.02rem;
}

.portal-head span {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.invoice-example {
  grid-column: span 2;
}

.invoice-example p {
  margin-bottom: 0;
  color: var(--muted);
}

.billing-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.billing-section p {
  color: var(--muted);
}

.billing-card,
.next-payment,
.invoice-paid {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.billing-card {
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.billing-summary div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  background: var(--white);
}

.billing-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-summary strong {
  font-size: 1rem;
}

.payment-history {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.payment-history th,
.payment-history td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.payment-history th {
  color: var(--green-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.system-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.system-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  color: var(--white);
  background: #071224;
}

.system-sidebar strong {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.platform-menu-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.platform-menu-button.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.system-screen {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 24px);
  background: #f6f9fd;
}

.platform-view {
  display: none;
}

.platform-view.active {
  display: grid;
  gap: 14px;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.screen-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.58rem);
}

.calendar-shell {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 760px;
  margin-bottom: 12px;
}

.calendar-title strong {
  font-size: 1.04rem;
}

.calendar-title span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.schedule-calendar {
  display: grid;
  grid-template-columns: 76px repeat(5, minmax(132px, 1fr));
  grid-auto-rows: 58px;
  min-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.calendar-corner,
.day-head,
.hour-cell {
  display: grid;
  place-items: center;
  background: #edf2f8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.day-head {
  color: var(--green-dark);
  background: #f8fafc;
}

.day-head.active-day {
  color: var(--white);
  background: var(--green-dark);
}

.calendar-cell {
  min-width: 0;
  border: 0;
  padding: 8px;
  background: var(--white);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.calendar-cell.free {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.09) 0,
      rgba(37, 99, 235, 0.09) 6px,
      rgba(37, 99, 235, 0.025) 6px,
      rgba(37, 99, 235, 0.025) 12px
    ) border-box;
}

.calendar-cell.booked {
  color: #7f1d1d;
  background: #fee2e2;
  cursor: not-allowed;
}

.calendar-cell.selected {
  color: var(--white);
  background: var(--blue);
}

.calendar-cell.continuation {
  border-top: 1px dashed rgba(255, 255, 255, 0.55);
}

.booking-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.booking-panel strong {
  grid-column: 1 / -1;
  font-size: 1rem;
}

.booking-panel div {
  display: grid;
  gap: 4px;
}

.booking-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.maintenance-layout,
.ticket-list,
.request-grid {
  display: grid;
  gap: 10px;
}

.maintenance-layout {
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  align-items: start;
}

.ticket-list article,
.request-grid article,
.maintenance-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ticket-list article.ticket-selected {
  border-color: rgba(31, 95, 139, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.12);
}

.ticket-list p,
.request-grid span {
  margin-bottom: 0;
  color: var(--muted);
}

.ticket-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.ticket-status.open {
  background: var(--coral);
}

.ticket-status.progress {
  background: var(--blue);
}

.ticket-status.closed {
  background: var(--green);
}

.billing-dashboard {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: 10px;
}

.next-payment,
.invoice-paid {
  padding: 14px;
}

.next-payment > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.05;
}

.next-payment p {
  color: var(--muted);
}

.billing-frequency {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-frequency span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 900;
}

.billing-frequency .active {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.invoice-paid dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.invoice-paid dl div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  padding: 10px 0;
  background: var(--white);
}

.invoice-paid dt {
  color: var(--muted);
}

.invoice-paid dd {
  margin: 0;
  font-weight: 800;
}

.billing-history-list {
  grid-column: 1 / -1;
}

.maintenance-panel {
  gap: 14px;
}

.maintenance-panel > strong {
  font-size: 1.06rem;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid label span {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: none;
}

.form-grid .field-wide {
  grid-column: 1 / -1;
}

.ticket-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ticket-flow span {
  padding: 9px 8px;
  border-radius: 6px;
  color: var(--green-dark);
  background: #e6f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.integration-list {
  display: grid;
  gap: 12px;
}

.integration-list article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.integration-list span {
  color: var(--muted);
}

.estimate-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.estimate-panel h3 {
  margin-bottom: 14px;
  font-size: 1.32rem;
}

.estimate-panel dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.estimate-panel dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  background: var(--white);
}

.estimate-panel dt {
  color: var(--muted);
}

.estimate-panel dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.scenario-control {
  margin-top: 20px;
}

.scenario-button {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.scenario-button.active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.cost-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cost-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.scenario-table {
  min-width: 1080px;
}

.cost-table th,
.cost-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cost-table th {
  color: var(--green-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cost-table tr:last-child td {
  border-bottom: 0;
}

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

.pricing-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.pricing-card.highlighted {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

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

.pricing-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.pricing-card dl div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 10px 0;
  background: var(--white);
}

.pricing-card dt {
  color: var(--muted);
}

.pricing-card dd {
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.scope-matrix {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.scope-matrix-head {
  margin-bottom: 14px;
}

.scope-matrix-head h3 {
  margin-bottom: 0;
  font-size: 1.14rem;
}

.scope-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scope-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.scope-table th,
.scope-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.scope-table th {
  color: var(--green-dark);
  background: #eef4ff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.scope-table td:not(:first-child) {
  width: 150px;
  color: var(--green-dark);
  font-weight: 900;
}

.scope-table tr:last-child td {
  border-bottom: 0;
}

.cost-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cost-notes article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.cost-notes span {
  color: var(--muted);
}

.scenario-table td:first-child {
  width: 170px;
  color: var(--green-dark);
  font-weight: 900;
}

.scenario-table ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.scenario-table li {
  color: var(--muted);
}

.scenario-table td[colspan] {
  color: var(--muted);
}

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

.cost-calculator {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.42fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  margin-bottom: 18px;
}

.calculator-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.quote-meta {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
  background: #eef4ff;
}

.quote-meta strong {
  color: var(--green-dark);
  font-size: 1.04rem;
}

.quote-meta span {
  color: var(--muted);
  line-height: 1.42;
}

.quote-builder {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quote-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.quote-table th,
.quote-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.quote-table th {
  color: var(--green-dark);
  background: #eef4ff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.quote-table td:first-child,
.quote-table th:first-child {
  width: 86px;
  text-align: center;
}

.quote-table td:nth-child(3),
.quote-table td:nth-child(4),
.quote-table td:nth-child(5) {
  white-space: nowrap;
}

.quote-table strong,
.quote-table span,
.quote-table small {
  display: block;
}

.quote-table span,
.quote-table small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.quote-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.quote-table select,
.quote-qty {
  min-height: 40px;
  width: 100%;
  max-width: 230px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.quote-group td {
  color: var(--green-dark);
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-table td[data-line-total] {
  color: var(--green-dark);
  font-weight: 900;
}

.quote-row-off td {
  color: var(--muted);
  background: #fbfdff;
}

.quote-row-off td:not(:first-child) {
  opacity: 0.72;
}

.calculator-total {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
  background: #eef4ff;
}

.calculator-total > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.calculator-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-total strong {
  color: var(--green-dark);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.calculator-total .total-main strong {
  font-size: clamp(1.22rem, 2vw, 1.58rem);
}

.calculator-total .total-gap {
  min-height: 76px;
}

.dynamic-timeline {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.timeline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.timeline-heading h4,
.timeline-heading p {
  margin-bottom: 0;
}

.timeline-heading strong {
  color: var(--green-dark);
  font-size: clamp(1.02rem, 1.75vw, 1.32rem);
  text-align: right;
}

.gantt-scale {
  display: grid;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  gap: 0;
  min-width: 780px;
  margin-left: 240px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gantt-list {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding-top: 8px;
}

.gantt-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.gantt-row {
  display: grid;
  grid-template-columns: 220px minmax(780px, 1fr);
  gap: 16px;
  align-items: center;
}

.gantt-label {
  display: grid;
  gap: 4px;
}

.gantt-label strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.gantt-label span {
  color: var(--muted);
  font-size: 0.84rem;
}

.gantt-track {
  position: relative;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      to right,
      #e8eef6 0,
      #e8eef6 1px,
      transparent 1px,
      transparent 12.5%
    ),
    var(--white);
}

.gantt-bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  min-width: 26px;
  border-radius: 6px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.16);
}

.gantt-bar.service {
  background: var(--gold);
}

.gantt-bar.monthly {
  background: var(--coral);
}

.timeline-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-detail {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.plan-detail-heading {
  margin-bottom: 14px;
}

.plan-detail-heading h3,
.plan-detail-heading p {
  margin-bottom: 0;
}

.plan-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-detail-list li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.plan-detail-list span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-detail-list strong {
  color: var(--green-dark);
  font-size: 1.08rem;
}

.plan-detail-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan-detail-list .plan-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

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

.calc-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
}

.calc-option:has(input:checked) {
  border-color: rgba(29, 78, 216, 0.42);
  background: #eaf2ff;
}

.calc-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.calc-option span {
  display: grid;
  gap: 6px;
}

.calc-option small {
  color: var(--muted);
  line-height: 1.42;
}

.calc-option b {
  color: var(--green-dark);
}

.mailbox-control,
.support-control {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.mailbox-control label,
.support-control label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mailbox-control input,
.support-control select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.support-control small {
  color: var(--muted);
  line-height: 1.35;
}

.upgrade-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
}

.upgrade-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.upgrade-card p {
  color: var(--muted);
}

.upgrade-card small {
  color: var(--green-dark);
  font-weight: 900;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  min-height: 190px;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: var(--white);
}

.timeline-list span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
}

.timeline-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.final-cta {
  background: var(--green-dark);
  color: var(--white);
}

.final-cta .eyebrow {
  color: #bfdbfe;
}

.final-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.footer {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.8);
  background: #071224;
  font-size: 0.84rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  object-fit: cover;
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 68svh;
    padding-top: 92px;
  }

  .split,
  .costs-layout,
  .final-grid,
  .detail-preview,
  .quote-layout,
  .architecture,
  .timeline-list {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .tool-list,
  .model-panel,
  .rule-grid,
  .onboarding-grid,
  .portal-scope,
  .portal-grid,
  .upgrade-grid,
  .pricing-cards,
  .cost-notes,
  .calculator-heading,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .payment-note,
  .billing-section,
  .invoice-example {
    grid-column: auto;
  }

  .payment-note,
  .billing-section,
  .billing-dashboard {
    grid-template-columns: 1fr;
  }

  .plan-detail-list {
    grid-template-columns: 1fr;
  }

  .calculator-total {
    grid-template-columns: 1fr;
  }

  .billing-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-preview {
    grid-template-columns: 1fr;
  }

  .system-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .system-sidebar strong {
    min-width: 120px;
    margin-bottom: 0;
  }

  .platform-menu-button {
    min-width: 150px;
  }

  .booking-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .maintenance-layout {
    grid-template-columns: 1fr;
  }

  .estimate-panel {
    position: static;
  }

  .timeline-heading {
    display: grid;
  }

  .timeline-heading strong {
    text-align: left;
  }

  .gantt-scale {
    margin-left: 0;
  }

  .gantt-row {
    grid-template-columns: minmax(180px, 220px) minmax(680px, 1fr);
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .hero {
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.25rem);
  }

  .feature-card,
  .tool-list article,
  .estimate-panel,
  .timeline-list li {
    padding: 16px;
  }

  .estimate-panel dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quote-card dl div,
  .mini-invoice dl div,
  .portal-card dl div,
  .invoice-paid dl div,
  .pricing-card dl div,
  .integration-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .estimate-panel dd {
    text-align: left;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .screen-header,
  .booking-panel {
    grid-template-columns: 1fr;
  }

  .screen-header {
    display: grid;
  }

  .form-grid,
  .ticket-flow,
  .billing-summary {
    grid-template-columns: 1fr;
  }
}
