:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(216, 164, 65, 0.5);
  outline-offset: 2px;
}

[data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.1;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 37, 29, 0.98);
  color: #fff;
  padding: 0.75rem;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(216, 164, 65, 0.78);
  border-radius: 8px;
  background: rgba(216, 164, 65, 0.12);
  color: #d8a441;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brand small {
  margin-top: 0.35rem;
  color: rgba(216, 164, 65, 0.92);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 0.45rem;
}

.nav-item,
.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  border: 0;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-item {
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 0 0.85rem;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.nav-item.active {
  box-shadow: inset 0 -3px 0 #d8a441;
}

.sidebar-card {
  display: none;
}

.sidebar-card p {
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.sidebar-card a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 8px;
  background: #11834a;
  color: #fff;
  font-weight: 950;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 4.3rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(222, 214, 200, 0.9);
  background: rgba(247, 244, 237, 0.92);
  padding: 1rem;
  backdrop-filter: blur(18px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.badge-row span {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(216, 164, 65, 0.35);
  border-radius: 8px;
  background: rgba(216, 164, 65, 0.12);
  color: #5a3f83;
  padding: 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 950;
}

.badge-row span:last-child {
  border-color: rgba(17, 131, 74, 0.24);
  background: rgba(17, 131, 74, 0.1);
  color: #08704f;
}

.topbar h1 {
  max-width: 52rem;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.top-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.primary-btn {
  background: #11834a;
  color: #fff;
  padding: 0 1rem;
  box-shadow: 0 14px 34px rgba(17, 131, 74, 0.2);
}

.secondary-btn {
  border: 1px solid rgba(216, 164, 65, 0.22);
  background: #f8e8bd;
  color: #101713;
  padding: 0 1rem;
}

.ghost-btn {
  border: 1px solid #ded6c8;
  background: #fff;
  color: #101713;
  padding: 0 1rem;
}

.ghost-btn.dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.nav-item:hover,
.guide-step:hover,
.quick-grid button:hover,
.case-card:hover,
.priority-list button:hover {
  transform: translateY(-1px);
}

.content {
  padding: 1rem;
}

.view {
  display: none;
  min-width: 0;
  animation: view-in 220ms ease-out;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-guide,
.hero-shell,
.surface,
.side-panel,
.summary-card,
.how-grid article {
  border: 1px solid rgba(222, 214, 200, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 23, 19, 0.08);
}

.demo-guide {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
  padding: 1rem;
}

.guide-copy span,
.eyebrow {
  color: #d8a441;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-copy span {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border-radius: 8px;
  background: rgba(216, 164, 65, 0.14);
  padding: 0 0.55rem;
}

.guide-copy h2 {
  max-width: 35rem;
  margin: 0.55rem 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 950;
  line-height: 1.15;
}

.guide-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-step {
  display: flex;
  min-height: 3rem;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fbfaf7;
  color: #101713;
  padding: 0 0.7rem;
  font-weight: 950;
  text-align: left;
  white-space: normal;
}

.guide-step strong {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #08251d;
  color: #d8a441;
}

.guide-step.active {
  border-color: #d8a441;
  background: #fff7e5;
}

.hero-shell {
  display: grid;
  overflow: hidden;
  background: #08251d;
  color: #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.8rem);
}

.hero-copy h2 {
  max-width: 58rem;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 45rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.quick-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid button {
  display: grid;
  gap: 0.35rem;
  min-height: 7.25rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 1rem;
  text-align: left;
}

.quick-grid strong {
  font-size: 1.45rem;
  font-weight: 950;
}

.quick-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.flyer-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  color: #101713;
  padding: 1rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.panel-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5a3f83;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-head strong {
  border-radius: 8px;
  background: rgba(17, 131, 74, 0.1);
  color: #08704f;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
}

.flyer-panel img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.flyer-note {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
  border-radius: 8px;
  background: #fbfaf7;
  color: #5f5143;
  padding: 0.85rem;
  line-height: 1.5;
}

.how-grid,
.summary-grid {
  display: grid;
  gap: 1rem;
}

.how-grid article {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.how-grid span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  background: #08251d;
  color: #d8a441;
  font-weight: 950;
}

.how-grid strong,
.summary-card strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.how-grid p,
.summary-card p {
  margin: 0;
  color: #60726c;
  line-height: 1.6;
}

.summary-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
}

.summary-card > i,
.module-explainer > i {
  flex: 0 0 auto;
  color: #5a3f83;
}

.module-layout {
  display: grid;
  gap: 1rem;
}

.surface,
.side-panel {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.module-explainer {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  border: 1px solid rgba(216, 164, 65, 0.25);
  border-radius: 8px;
  background: #fff8e8;
  padding: 0.85rem;
}

.module-explainer strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 950;
}

.module-explainer p {
  margin: 0;
  color: #5f5143;
  line-height: 1.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  max-width: 48rem;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  font-weight: 950;
  line-height: 1.08;
}

.agenda-grid,
.case-board,
.document-layout,
.whatsapp-layout,
.report-grid,
.client-grid {
  display: grid;
  gap: 1rem;
}

.day-card,
.case-column,
.document-list,
.ai-console,
.phone-mock,
.message-panel,
.client-card,
.report-grid article,
.daily-summary {
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 1rem;
}

.day-card {
  display: grid;
  gap: 0.8rem;
  min-height: 10rem;
}

.day-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.day-card span,
.day-card small {
  color: #60726c;
  font-weight: 800;
}

.day-card strong {
  color: #08704f;
  font-weight: 950;
}

.day-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.35;
}

.day-card.is-today {
  border-color: #d8a441;
  background: #fff8e8;
}

.priority-list {
  display: grid;
  gap: 0.6rem;
}

.priority-list button {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  text-align: left;
}

.priority-list button > span {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8a441;
  margin-top: 0.25rem;
}

.priority-list strong,
.case-card strong,
.document-item strong,
.client-card h3,
.daily-summary h3 {
  display: block;
  color: #101713;
  font-weight: 950;
}

.priority-list small,
.case-card span,
.case-card small,
.document-item span,
.client-card p,
.client-card small,
.side-copy {
  color: #60726c;
  line-height: 1.5;
}

.case-board {
  grid-template-columns: 1fr;
}

.case-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.case-column h3 {
  margin: 0;
  color: #5a3f83;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.case-card {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  min-height: 7rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem;
  text-align: left;
}

.case-card.active {
  border-color: #d8a441;
  background: #fff8e8;
}

.case-card.done {
  border-color: rgba(17, 131, 74, 0.3);
  background: rgba(17, 131, 74, 0.06);
}

.document-layout {
  align-items: start;
}

.document-list {
  display: grid;
  gap: 0.65rem;
}

.document-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
}

.document-item.active {
  border-color: #d8a441;
  background: #fff8e8;
}

.document-item i {
  color: #08704f;
}

.ai-console {
  display: grid;
  gap: 0.9rem;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prompt-chips button {
  min-height: 2.2rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  color: #5a3f83;
  padding: 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.ai-form,
.field-search {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
}

.ai-form input,
.field-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.ai-answer {
  display: flex;
  gap: 0.8rem;
  border: 1px solid rgba(17, 131, 74, 0.24);
  border-radius: 8px;
  background: rgba(17, 131, 74, 0.08);
  padding: 1rem;
}

.ai-answer i {
  flex: 0 0 auto;
  color: #08704f;
}

.ai-answer p {
  margin: 0.25rem 0 0;
  color: #42564f;
  line-height: 1.6;
}

.client-grid {
  grid-template-columns: 1fr;
}

.client-card {
  display: grid;
  gap: 0.55rem;
}

.client-card span {
  width: max-content;
  border-radius: 8px;
  background: rgba(216, 164, 65, 0.16);
  color: #5a3f83;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 950;
}

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

.client-card div {
  border-top: 1px solid #ded6c8;
  padding-top: 0.75rem;
}

.whatsapp-layout {
  align-items: start;
}

.phone-mock {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
  gap: 0.75rem;
  background:
    linear-gradient(rgba(8, 37, 29, 0.78), rgba(8, 37, 29, 0.78)),
    radial-gradient(circle at top right, rgba(216, 164, 65, 0.22), transparent 32%),
    #08251d;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem;
  font-weight: 950;
}

.chat-bubble {
  max-width: 86%;
  border-radius: 8px;
  padding: 0.75rem;
  line-height: 1.45;
}

.chat-bubble.client {
  align-self: flex-start;
  background: #fff;
}

.chat-bubble.business {
  align-self: flex-end;
  background: #dff5dd;
}

.message-panel {
  display: grid;
  gap: 0.75rem;
}

.message-panel label {
  color: #5a3f83;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.message-panel textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  outline: 0;
  padding: 0.9rem;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 0.65rem;
}

.contact-list a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #11834a;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

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

.report-grid article {
  display: grid;
  gap: 0.5rem;
  min-height: 8.25rem;
}

.report-grid article i {
  color: #5a3f83;
}

.report-grid strong {
  font-size: 2rem;
  font-weight: 950;
}

.report-grid span {
  color: #60726c;
}

.daily-summary {
  margin-top: 1rem;
}

.daily-summary h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.daily-summary ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-summary li {
  display: flex;
  gap: 0.55rem;
  color: #42564f;
}

.daily-summary i {
  flex: 0 0 auto;
  color: #11834a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 70;
  width: min(calc(100vw - 2rem), 28rem);
  border: 1px solid rgba(216, 164, 65, 0.5);
  border-radius: 8px;
  background: #08251d;
  color: #fff;
  box-shadow: 0 24px 70px rgba(16, 23, 19, 0.22);
  padding: 0.9rem 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  background: #11834a;
  color: #fff;
  box-shadow: 0 24px 70px rgba(17, 131, 74, 0.28);
  padding: 0 1rem;
  font-weight: 950;
}

@media (min-width: 640px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

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

@media (min-width: 900px) {
  .content {
    padding: 1.35rem;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 25rem;
  }

  .module-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }

  .document-layout,
  .whatsapp-layout {
    grid-template-columns: 19rem minmax(0, 1fr);
  }

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

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

@media (min-width: 1180px) {
  .app-shell {
    grid-template-columns: 17.5rem minmax(0, 1fr);
  }

  .sidebar {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    border-right: 1px solid rgba(216, 164, 65, 0.26);
    border-bottom: 0;
    padding: 1rem;
  }

  .nav-list {
    display: grid;
  }

  .nav-item {
    justify-content: flex-start;
  }

  .nav-item.active {
    box-shadow: inset 3px 0 0 #d8a441;
  }

  .sidebar-card {
    display: block;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
  }

  .topbar {
    top: 0;
    padding: 1rem 1.5rem;
  }

  .content {
    padding: 1.5rem;
  }

  .demo-guide {
    grid-template-columns: minmax(18rem, 1fr) minmax(0, 2fr) auto;
  }

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

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

  .floating-cta {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .topbar h1 {
    font-size: 1.55rem;
  }

  .top-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .field-search,
  .ai-form {
    width: 100%;
  }

  .guide-actions,
  .quick-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 2.25rem;
  }

  .ai-form {
    align-items: stretch;
    flex-direction: column;
    padding: 0.85rem;
  }

  .floating-cta {
    display: none;
  }
}
