:root {
  --bg: #f7f8f5;
  --ink: #17231f;
  --muted: #51645e;
  --line: #dfe5dc;
  --green: #009c4b;
  --deep: #14231e;
  --yellow: #f2cc5c;
  --surface: #ffffff;
  --surface-soft: #ffffffb3;
  --card-shadow: 0 28px 70px rgb(43 58 53 / 14%);
  color-scheme: light;
}

html.dark {
  --bg: #0e1714;
  --ink: #eef8f2;
  --muted: #a8bbb3;
  --line: #263a32;
  --deep: #09110e;
  --surface: #14231e;
  --surface-soft: #14231eb3;
  --card-shadow: 0 28px 70px rgb(0 0 0 / 34%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  overflow-x: hidden;
  transition:
    background 180ms ease,
    color 180ms ease;
}

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

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.theme-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 10;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px;
  color: var(--muted);
  box-shadow: 0 12px 32px rgb(20 35 30 / 12%);
  cursor: pointer;
}

.theme-toggle span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle__moon svg {
  fill: currentColor;
  stroke-width: 1.7;
}

.theme-toggle__sun {
  background: var(--green);
  color: white;
}

html.dark .theme-toggle__sun {
  background: transparent;
  color: var(--muted);
}

html.dark .theme-toggle__moon {
  background: var(--green);
  color: white;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--green);
}

.hero-grid,
.section,
.workflow {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 24px;
}

.hero-grid {
  max-width: 1440px;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(440px, 0.86fr) minmax(700px, 1.14fr);
  align-items: center;
  gap: 56px;
  padding-block: 64px 48px;
}

.pill {
  display: inline-flex;
  margin: 0 0 20px;
  border: 1px solid #cbd8c7;
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 16px;
  color: #345148;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgb(20 35 30 / 8%);
}

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

h1 {
  color: var(--ink);
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 950;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

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

.button {
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 16px 28px rgb(0 156 75 / 20%);
}

.secondary {
  border: 1px solid #cbd8c7;
  background: var(--surface);
}

.whatsapp {
  background: #25d366;
  color: #062f19;
  box-shadow: 0 16px 28px rgb(37 211 102 / 20%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin-top: 40px;
}

.stats div {
  border-left: 2px solid var(--green);
  background: var(--surface-soft);
  padding: 12px 0 12px 16px;
}

.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 950;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: #61756e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card {
  width: 100%;
  max-width: 820px;
  justify-self: end;
  border: 1px solid #cbd8c7;
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--card-shadow);
}

.mockup {
  display: grid;
  grid-template-columns: minmax(168px, 210px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.sidebar {
  min-width: 0;
  border-radius: 6px;
  background: var(--deep);
  padding: 14px;
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  font-weight: 950;
}

.brand b,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: rgb(255 255 255 / 55%);
}

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

.sidebar nav span {
  border-radius: 6px;
  padding: 10px;
  color: rgb(255 255 255 / 68%);
  font-size: 12px;
  font-weight: 750;
  white-space: normal;
}

.sidebar nav .active {
  background: var(--surface);
  color: var(--ink);
}

.dashboard {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
  padding: 16px;
}

.dashboard header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard small,
.section-heading small,
.workflow small,
.final small,
.module-grid small {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard h2 {
  margin-top: 4px;
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.08;
  font-weight: 950;
}

.dashboard header strong {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 14px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.kpis article,
.chart,
.resident,
.module-grid article,
.workflow li,
.resident-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

html.dark .kpis article,
html.dark .chart,
html.dark .module-grid article,
html.dark .workflow li,
html.dark .resident-summary {
  background: var(--surface);
}

.kpis article {
  min-width: 0;
  padding: 10px;
}

.kpis i {
  display: block;
  width: 40px;
  height: 6px;
  margin-bottom: 12px;
  border-radius: 999px;
}

.yellow { background: var(--yellow); }
.green { background: var(--green); }
.red { background: #dc6b4a; }
.blue { background: #2f7fbd; }
.gray { background: #6b7280; }

.kpis span {
  display: block;
  color: #66776f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpis b {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 950;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.78fr);
  gap: 12px;
  margin-top: 16px;
}

.chart {
  min-width: 0;
  padding: 16px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.bar {
  margin-bottom: 16px;
}

.bar:last-child {
  margin-bottom: 0;
}

.bar span {
  display: block;
  margin-bottom: 6px;
  color: #5f7069;
  font-size: 12px;
  font-weight: 750;
}

.bar::after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.bar em {
  display: block;
  width: var(--w);
  height: 8px;
  margin-top: -8px;
  border-radius: 999px;
  background: var(--green);
}

.resident {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ink);
  padding: 16px;
  color: white;
}

html.dark .resident,
html.dark .admin {
  background: #07100d;
  border: 1px solid var(--line);
}

html.dark .workflow li b {
  background: #063d25;
  color: #dffcf0;
  border: 1px solid #0f7a49;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
}

.resident img {
  position: absolute;
  top: -40px;
  right: -64px;
  width: 176px;
  opacity: 0.7;
}

.resident small,
.admin small {
  color: #a7e9c8;
}

.resident b {
  position: relative;
  display: block;
  margin-top: 12px;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.15;
}

.resident p {
  position: relative;
  margin-top: 28px;
  color: rgb(255 255 255 / 68%);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding-block: 80px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.workflow h2 {
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.module-grid article {
  padding: 24px;
  box-shadow: 0 6px 18px rgb(20 35 30 / 4%);
}

.module-grid h3 {
  margin-top: 12px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 950;
}

.module-grid p,
.workflow p,
.admin p,
.resident-summary p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.workflow-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.workflow {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding-block: 80px;
}

.workflow ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg);
  padding: 20px;
}

.workflow li b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 20px;
}

.workflow li span {
  font-size: 18px;
  font-weight: 850;
}

.promo {
  padding: 80px 24px 0;
}

.promo-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid #0f7a49;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(0 156 75 / 12%), transparent 42%),
    var(--surface);
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.promo-copy small,
.promo-panel span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.promo-copy h2 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 950;
}

.promo-copy p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.promo-panel {
  align-self: stretch;
  border-radius: 8px;
  background: var(--ink);
  padding: 28px;
  color: white;
}

.promo-panel b {
  display: block;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  font-weight: 950;
}

.promo-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.promo-panel li {
  position: relative;
  padding-left: 24px;
  color: rgb(255 255 255 / 78%);
  font-weight: 750;
  line-height: 1.5;
}

.promo-panel li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #25d366;
}

.promo-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

html.dark .promo-card {
  background:
    linear-gradient(135deg, rgb(0 156 75 / 18%), transparent 46%),
    var(--surface);
}

html.dark .promo-panel {
  background: #07100d;
  border: 1px solid var(--line);
}

.final {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.admin {
  border-radius: 8px;
  background: var(--ink);
  padding: 32px;
  color: white;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  border-radius: 999px;
  background: #25d366;
  padding: 14px 18px;
  color: #062f19;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgb(0 0 0 / 18%);
}

.whatsapp-float:hover {
  transform: translateY(-1px);
}

html.dark .pill,
html.dark .secondary,
html.dark .dashboard header strong {
  border-color: var(--line);
}

html.dark .kpis span,
html.dark .bar span,
html.dark .stats span {
  color: var(--muted);
}

.admin h2 {
  max-width: 800px;
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
}

.admin p {
  max-width: 720px;
  color: rgb(255 255 255 / 72%);
}

.resident-summary {
  padding: 32px;
}

.resident-summary h3 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
}

@media (max-width: 980px) {
  .hero-grid,
  .workflow,
  .promo-card,
  .final {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 40px;
  }

  .product-card {
    justify-self: stretch;
    max-width: none;
  }

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

@media (max-width: 720px) {
  .hero-grid,
  .section,
  .workflow {
    padding-inline: 18px;
  }

  .mockup,
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .kpis,
  .module-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 54px;
  }

  .promo {
    padding-inline: 18px;
  }

  .promo-card,
  .promo-panel {
    padding: 22px;
  }
}
