:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input: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;
}

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

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.view.active {
  display: block;
}

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

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

.nav-item {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  border-radius: 8px;
  padding: 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

.sidebar-link {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.6rem;
  border-radius: 8px;
  padding: 0 0.65rem;
  color: rgba(255, 255, 255, 0.86);
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.command-search,
.field-search {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0 0.8rem;
  color: #5a3f83;
}

.top-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
}

.top-actions .command-search {
  grid-column: 1 / -1;
}

.command-search {
  width: min(100%, 28rem);
}

.field-search {
  width: min(100%, 24rem);
}

.command-search input,
.field-search input,
.ai-form input,
.composer input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17141f;
}

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

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

.primary-btn:hover,
.secondary-btn:hover,
.icon-action:hover,
.feature-card:hover,
.quick-card:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  padding: 0 1rem;
  background: #f8e8bd;
  color: #24182f;
}

.icon-action {
  width: 2.75rem;
  flex: 0 0 auto;
  background: #fff;
  color: #5a3f83;
  box-shadow: 0 12px 28px rgba(23, 20, 31, 0.1);
}

.icon-action.small {
  min-height: 2.25rem;
  width: 2.25rem;
  box-shadow: none;
  border: 1px solid #ded6c8;
}

.hero-shell {
  overflow: hidden;
  border-radius: 8px;
  background: #24182f;
  color: #fff;
  box-shadow: 0 18px 48px rgba(23, 20, 31, 0.12);
}

.hero-layout {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.hero-copy-panel {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #24182f 0%, #1b1025 100%);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero-title {
  max-width: 50rem;
  font-size: 3rem;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-preview-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(222, 214, 200, 0.95);
  background: #fbfaf7;
  color: #24182f;
  padding: 0.85rem;
}

.hero-preview-head,
.preview-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-preview-head {
  justify-content: space-between;
  min-height: 2.4rem;
}

.hero-preview-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5a3f83;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-preview-head strong {
  border-radius: 8px;
  background: rgba(17, 131, 74, 0.1);
  color: #0d6a3b;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}

.flyer-frame {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #140f1d;
}

.flyer-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-caption {
  min-height: 3.5rem;
  border-radius: 8px;
  background: #f7f4ed;
  padding: 0.75rem;
  color: #665f70;
  font-size: 0.92rem;
  line-height: 1.45;
}

.preview-caption i {
  color: #d8a441;
}

.quick-card {
  min-height: 7.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.95rem;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.quick-card i {
  color: #d8a441;
}

.quick-card span,
.quick-card small {
  display: block;
}

.quick-card span {
  margin-top: 0.85rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.quick-card small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.metric-card,
.surface,
.feature-card,
.folder-card {
  border: 1px solid rgba(222, 214, 200, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 20, 31, 0.12);
}

.metric-card {
  min-height: 11rem;
  padding: 1rem;
}

.metric-card strong {
  display: block;
  margin-top: 1.4rem;
  font-size: 2.15rem;
  line-height: 1;
}

.metric-card p {
  margin-top: 0.45rem;
  color: #665f70;
  line-height: 1.45;
}

.metric-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 8px;
}

.trend {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  border-radius: 8px;
  padding: 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.trend.good {
  background: rgba(17, 131, 74, 0.1);
  color: #0d6a3b;
}

.trend.warn {
  background: rgba(216, 164, 65, 0.18);
  color: #8a5d00;
}

.trend.neutral {
  background: #eaf4ff;
  color: #09629e;
}

.task-row {
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #fbfaf7;
  padding: 0.75rem;
  text-align: left;
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row small {
  margin-top: 0.15rem;
  color: #665f70;
}

.dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 999px;
}

.feature-card {
  min-height: 10.5rem;
  padding: 1.05rem;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-card i,
.folder-card i {
  width: 2rem;
  height: 2rem;
  color: #d8a441;
}

.feature-card span,
.feature-card p {
  display: block;
}

.feature-card span {
  margin-top: 1rem;
  font-weight: 900;
}

.feature-card p {
  margin-top: 0.45rem;
  color: #665f70;
  line-height: 1.55;
}

.surface {
  padding: clamp(1rem, 2vw, 1.25rem);
}

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

.section-head.compact {
  align-items: flex-start;
}

.section-head p {
  margin: 0;
  color: #5a3f83;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
}

.day-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #fbfaf7;
  padding: 1rem;
}

.day-card.is-today {
  border-color: rgba(216, 164, 65, 0.85);
  background: linear-gradient(180deg, #fff8e8, #fff);
}

.day-card span,
.day-card small {
  color: #665f70;
}

.day-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.55rem;
}

.day-card p {
  margin: 1rem 0;
  line-height: 1.45;
}

.mini-stat {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  border-radius: 8px;
  background: #fff;
  padding: 0 0.8rem;
  color: #24182f;
  font-weight: 800;
}

.mini-stat i {
  color: #5a3f83;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline div {
  border-left: 3px solid #d8a441;
  padding-left: 0.85rem;
}

.timeline time {
  color: #5a3f83;
  font-weight: 900;
}

.timeline p {
  margin: 0.25rem 0 0;
  color: #665f70;
  line-height: 1.5;
}

.data-table {
  min-width: 52rem;
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #ded6c8;
  padding: 0.95rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #665f70;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.data-table td strong,
.data-table td span {
  display: block;
}

.data-table td span {
  margin-top: 0.2rem;
  color: #665f70;
  font-size: 0.86rem;
}

.status {
  display: inline-flex !important;
  min-height: 1.75rem;
  align-items: center;
  border-radius: 8px;
  padding: 0 0.55rem;
  font-size: 0.8rem !important;
  font-weight: 900;
}

.status.done {
  background: rgba(17, 131, 74, 0.1);
  color: #0d6a3b !important;
}

.status.progress {
  background: rgba(90, 63, 131, 0.12);
  color: #5a3f83 !important;
}

.status.warning {
  background: rgba(216, 164, 65, 0.18);
  color: #8a5d00 !important;
}

.kanban-col {
  min-height: 24rem;
  border-radius: 8px;
  background: #f7f4ed;
  padding: 0.8rem;
}

.kanban-col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  font-weight: 950;
}

.kanban-col article {
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #fff;
  padding: 0.85rem;
}

.kanban-col strong,
.kanban-col span,
.kanban-col small {
  display: block;
}

.kanban-col span {
  margin-top: 0.25rem;
  color: #665f70;
}

.kanban-col small {
  margin-top: 0.8rem;
  color: #5a3f83;
  font-weight: 900;
}

.deadline-stack,
.check-stack {
  display: grid;
  gap: 0.65rem;
}

.deadline-stack span,
.check-stack span {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #fbfaf7;
  padding: 0 0.75rem;
  color: #24182f;
}

.check-stack i {
  color: #11834a;
}

.folder-card {
  min-height: 10rem;
  padding: 1rem;
}

.folder-card strong,
.folder-card span {
  display: block;
}

.folder-card strong {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.folder-card span {
  margin-top: 0.35rem;
  color: #665f70;
}

.upload-zone {
  margin-top: 1rem;
  display: grid;
  min-height: 9rem;
  width: 100%;
  place-items: center;
  gap: 0.55rem;
  border-radius: 8px;
  border: 2px dashed #cdbf9e;
  background: #fff8e8;
  color: #665f70;
  padding: 1rem;
  text-align: center;
}

.upload-zone i {
  width: 2.2rem;
  height: 2.2rem;
  color: #d8a441;
}

.ai-form {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.ai-form label {
  display: grid;
  gap: 0.35rem;
}

.ai-form label span {
  color: #665f70;
  font-weight: 900;
}

.ai-form input {
  min-height: 3rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0 0.85rem;
}

.ai-answer {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid rgba(90, 63, 131, 0.16);
  background: linear-gradient(135deg, #f3ecfb, #fff8e8);
  padding: 1rem;
  line-height: 1.55;
}

.ai-answer i {
  color: #5a3f83;
}

.ai-answer p {
  margin: 0;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 8px;
  border: 1px solid #ded6c8;
  background: #fbfaf7;
  padding: 0.9rem;
}

.result-card strong,
.result-card span {
  display: block;
}

.result-card span {
  margin-top: 0.25rem;
  color: #665f70;
}

.phone-mock {
  display: grid;
  min-height: 24rem;
  align-content: end;
  gap: 0.7rem;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #d9eadf;
  background: linear-gradient(135deg, rgba(17, 131, 74, 0.1), transparent), #f3f8f2;
  padding: 1rem;
}

.chat-bubble {
  max-width: min(80%, 35rem);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  line-height: 1.45;
}

.chat-bubble.client {
  border: 1px solid #ded6c8;
  background: #fff;
}

.chat-bubble.business {
  justify-self: end;
  background: #11834a;
  color: #fff;
}

.composer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.composer input {
  min-height: 3rem;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 0 0.9rem;
}

.toggle-row {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid #ded6c8;
  color: #24182f;
  font-weight: 800;
}

.toggle-row input {
  width: 2.5rem;
  height: 1.25rem;
  accent-color: #11834a;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: min(28rem, calc(100vw - 2rem));
  border-radius: 8px;
  background: #24182f;
  color: #fff;
  box-shadow: 0 24px 70px rgba(23, 20, 31, 0.16);
  opacity: 0;
  padding: 0.85rem 1rem;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .ai-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1180px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 27rem;
    align-items: stretch;
  }

  .hero-preview-panel {
    align-self: stretch;
  }
}

@media (min-width: 1480px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 31rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 640px) {
  .top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .top-actions .command-search {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .section-head,
  .composer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .field-search,
  .command-search {
    width: 100%;
  }

  .chat-bubble {
    max-width: 92%;
  }
}
