:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3f8;
  --color-ink: #18202f;
  --color-muted: #667085;
  --color-border: #d9e1ea;
  --color-primary: #126c73;
  --color-primary-strong: #0c4f55;
  --color-secondary: #3157a4;
  --color-accent: #c7673b;
  --color-warning: #d99016;
  --color-danger: #be3b43;
  --color-success: #2f8c68;
  --color-cold: #5c7cfa;
  --color-warm: #d99016;
  --color-hot: #be3b43;
  --shadow-soft: 0 10px 30px rgba(21, 33, 55, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --sidebar-width: 284px;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #12242c;
  color: #eef6f7;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #d7f0ed;
  color: #0f3c42;
  font-weight: 800;
}

.brand-block strong {
  display: block;
  font-size: 16px;
}

.brand-block span,
.launch-switcher label,
.sidebar-footer {
  color: rgba(238, 246, 247, 0.72);
  font-size: 12px;
}

.launch-switcher {
  display: grid;
  gap: 8px;
  padding: 0 8px;
}

.launch-switcher select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: #19333c;
  color: #f8fbfc;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  color: rgba(238, 246, 247, 0.82);
  background: transparent;
  text-align: left;
}

.nav-button svg,
.icon-button svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-button:hover,
.nav-button.is-active {
  background: rgba(215, 240, 237, 0.12);
  color: #ffffff;
}

.nav-button.is-active {
  box-shadow: inset 3px 0 0 #82d6cc;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 8px 4px;
}

.status-dot,
.notification-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-success);
}

.main-area {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0;
}

p {
  color: var(--color-muted);
  line-height: 1.55;
}

.topbar-actions,
.button-row,
.screen-actions,
.filter-row,
.status-row,
.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  padding: 0 14px;
  background: var(--color-primary);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--color-primary-strong);
}

.secondary-button {
  padding: 0 14px;
  background: #e8f3f1;
  color: var(--color-primary-strong);
  border-color: #b6d8d3;
}

.ghost-button {
  padding: 0 12px;
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.icon-button {
  position: relative;
  width: 40px;
  padding: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--color-danger);
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
  margin-bottom: 18px;
}

.context-strip div {
  padding: 14px 16px;
  background: var(--color-surface);
  min-width: 0;
}

.context-strip span,
.metric-label,
.table-meta,
.small-label {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 16px;
}

.context-strip strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.screen-root {
  display: grid;
  gap: 18px;
}

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

.screen-header p {
  max-width: 760px;
  margin-bottom: 0;
}

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

.kpi-card,
.panel,
.tile,
.conversation-row,
.kanban-card,
.unit-cell,
.integration-card,
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.kpi-card {
  padding: 16px;
  min-height: 122px;
}

.metric-value {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf8f5;
  color: var(--color-success);
  font-size: 12px;
  font-weight: 700;
}

.metric-trend.warning {
  background: #fff5db;
  color: #986106;
}

.metric-trend.danger {
  background: #ffe9eb;
  color: var(--color-danger);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

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

.panel {
  padding: 18px;
  min-width: 0;
}

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

.panel-header p {
  margin-bottom: 0;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
}

.stack-list,
.timeline-list,
.campaign-list,
.check-list,
.automation-flow {
  display: grid;
  gap: 10px;
}

.stack-item,
.timeline-item,
.campaign-item,
.check-item,
.automation-node,
.cost-line,
.form-row,
.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.stack-item:last-child,
.timeline-item:last-child,
.campaign-item:last-child,
.check-item:last-child,
.automation-node:last-child,
.cost-line:last-child,
.form-row:last-child,
.signal-row:last-child {
  border-bottom: 0;
}

.stack-item strong,
.timeline-item strong,
.campaign-item strong,
.check-item strong,
.automation-node strong,
.signal-row strong {
  display: block;
  margin-bottom: 3px;
}

.pill,
.tag,
.channel-badge,
.temp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill {
  background: var(--color-surface-alt);
  color: var(--color-muted);
}

.pill.success {
  background: #e9f6ef;
  color: var(--color-success);
}

.pill.warning {
  background: #fff5db;
  color: #986106;
}

.pill.danger {
  background: #ffe9eb;
  color: var(--color-danger);
}

.pill.info {
  background: #edf2ff;
  color: var(--color-secondary);
}

.temp-cold {
  background: #edf2ff;
  color: var(--color-cold);
}

.temp-warm {
  background: #fff5db;
  color: var(--color-warm);
}

.temp-hot {
  background: #ffe9eb;
  color: var(--color-hot);
}

.chart-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 10px;
}

.bar-row span {
  color: var(--color-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 999px;
  background: var(--color-secondary);
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.step {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.step strong {
  display: block;
}

.step.is-active {
  border-color: #82d6cc;
  background: #effaf8;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 9px 10px;
  color: var(--color-ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  gap: 2px;
}

.segment {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
}

.segment.is-active {
  background: var(--color-primary);
  color: #ffffff;
}

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

.plan-card {
  padding: 16px;
}

.plan-card .metric-value {
  font-size: 22px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
}

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

.page-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.page-thumb {
  height: 128px;
  background: var(--color-surface-alt);
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
}

.page-thumb.hero {
  background-image: linear-gradient(rgba(18, 36, 44, 0.24), rgba(18, 36, 44, 0.58)), url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-preview-body {
  padding: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.day-cell {
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.day-cell strong {
  display: block;
  margin-bottom: 8px;
}

.post-chip {
  display: block;
  margin-bottom: 6px;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  background: #edf2ff;
  color: #283b73;
  font-size: 12px;
  font-weight: 700;
}

.ads-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

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

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

.data-table th {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
}

.inbox-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  gap: 12px;
  min-height: 620px;
}

.conversation-list,
.conversation-main,
.lead-side {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.conversation-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

.conversation-row.is-active {
  background: #effaf8;
  border-left: 4px solid var(--color-primary);
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e8f3f1;
  color: var(--color-primary-strong);
  font-weight: 800;
}

.conversation-row p {
  margin: 2px 0 0;
  font-size: 12px;
}

.chat-header,
.chat-compose,
.lead-side-header {
  padding: 14px;
  border-bottom: 1px solid var(--color-border);
}

.chat-thread {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.message {
  max-width: 76%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #eef3f8;
  color: var(--color-ink);
}

.message.out {
  justify-self: end;
  background: #dff2ee;
}

.chat-compose {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-compose input {
  min-height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 10px;
}

.lead-side {
  padding-bottom: 12px;
}

.lead-side .stack-item {
  margin: 0 14px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: conic-gradient(var(--color-hot) 0 78%, #e7edf5 78% 100%);
  font-size: 22px;
  font-weight: 800;
}

.lead-profile-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.profile-summary {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.timeline-item {
  align-items: flex-start;
}

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

.kanban-column {
  min-width: 220px;
  background: #eef3f8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.kanban-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kanban-card {
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: none;
}

.assignment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.agent-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 92px 92px 108px 118px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.agent-row:last-child {
  border-bottom: 0;
}

.unit-map {
  display: grid;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  gap: 8px;
}

.unit-cell {
  min-height: 72px;
  padding: 8px;
  box-shadow: none;
}

.unit-cell strong {
  display: block;
}

.unit-cell.available {
  border-color: #abd9c3;
  background: #f0faf4;
}

.unit-cell.reserved {
  border-color: #f1cf89;
  background: #fff8e8;
}

.unit-cell.proposal {
  border-color: #c5d1f7;
  background: #f0f3ff;
}

.unit-cell.sold {
  border-color: #efbac0;
  background: #fff0f2;
}

.proposal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

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

.document-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.bi-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.funnel-steps {
  display: grid;
  gap: 8px;
}

.funnel-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
}

.automation-flow {
  gap: 0;
}

.automation-node {
  position: relative;
  padding: 14px 0 14px 46px;
  justify-content: flex-start;
}

.automation-node::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-primary);
}

.automation-node::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 34px;
  bottom: -10px;
  width: 2px;
  background: var(--color-border);
}

.automation-node:last-child::after {
  display: none;
}

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

.integration-card {
  padding: 14px;
  min-height: 132px;
}

.integration-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #e8f3f1;
  color: var(--color-primary-strong);
  margin-bottom: 12px;
}

.landing-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.landing-canvas {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.landing-hero {
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 42px;
  color: #ffffff;
  background-image: linear-gradient(rgba(14, 26, 33, 0.14), rgba(14, 26, 33, 0.78)), url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.landing-hero h2 {
  max-width: 640px;
  color: #ffffff;
  font-size: 40px;
  line-height: 48px;
}

.landing-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
}

.landing-band div {
  padding: 18px;
  background: #ffffff;
}

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

.state-box {
  padding: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.skeleton {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6edf5 0%, #f5f7fb 50%, #e6edf5 100%);
  background-size: 220% 100%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #12242c;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .kpi-grid,
  .context-strip,
  .grid-3,
  .plan-grid,
  .integration-grid,
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .ads-grid,
  .assignment-grid,
  .proposal-layout,
  .bi-grid,
  .landing-preview,
  .lead-profile-grid {
    grid-template-columns: 1fr;
  }

  .inbox-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .lead-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-button {
    min-width: 170px;
  }

  .main-area {
    padding: 16px;
  }

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

  .setup-steps,
  .form-grid,
  .page-preview-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .unit-map {
    grid-template-columns: repeat(4, minmax(66px, 1fr));
  }

  .agent-row {
    grid-template-columns: 1fr 1fr;
  }

  .landing-hero {
    min-height: 360px;
    padding: 24px;
  }

  .landing-hero h2 {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 620px) {
  .kpi-grid,
  .context-strip,
  .grid-3,
  .plan-grid,
  .integration-grid,
  .state-grid,
  .landing-band {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    white-space: normal;
  }

  .bar-row,
  .funnel-step {
    grid-template-columns: 1fr;
  }

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

/* Home publica - Lanca Brasil */
.home-page {
  background: #f7f8fb;
  color: #17202f;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(11, 31, 38, 0.84);
  color: #ffffff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #d7f0ed;
  color: #0b3e45;
  font-weight: 900;
}

.home-brand strong,
.home-brand small {
  display: block;
}

.home-brand strong {
  font-size: 16px;
}

.home-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.home-nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.home-nav-links a:hover {
  color: #ffffff;
}

.home-nav-cta,
.home-primary,
.home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius-md);
  font-weight: 800;
}

.home-nav-cta {
  padding: 0 14px;
  background: #d7f0ed;
  color: #0b3e45;
}

.home-primary {
  padding: 0 18px;
  background: #126c73;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 108, 115, 0.24);
}

.home-primary:hover {
  background: #0c4f55;
}

.home-secondary {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #102831;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.home-page .home-nav-cta {
  color: #0b3e45;
}

.home-page .home-primary {
  color: #ffffff;
}

.home-page .home-secondary {
  color: #102831;
}

.home-nav-cta svg,
.home-primary svg,
.home-secondary svg,
.home-feature svg {
  width: 18px;
  height: 18px;
}

.home-hero {
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 5vw, 72px) 56px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(8, 25, 31, 0.9) 0%, rgba(8, 25, 31, 0.68) 44%, rgba(8, 25, 31, 0.22) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
}

.home-hero-inner {
  width: min(860px, 100%);
}

.home-kicker {
  margin-bottom: 10px;
  color: #2e7b81;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-transform: uppercase;
}

.home-hero .home-kicker {
  color: #9de1d8;
}

.home-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(54px, 9vw, 112px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.home-hero-copy {
  width: min(760px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.home-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(850px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(8, 25, 31, 0.48);
}

.home-hero-proof span {
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-proof span:last-child {
  border-right: 0;
}

.home-hero-proof strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d8e2ea;
  border-bottom: 1px solid #d8e2ea;
}

.home-stats div {
  padding: 28px clamp(18px, 3vw, 42px);
  background: #ffffff;
}

.home-stats span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-stats strong {
  display: block;
  margin: 8px 0;
  color: #102831;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.home-stats p {
  margin: 0;
}

.home-band,
.home-method,
.home-showcase,
.home-offer {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.home-band {
  background: #ffffff;
}

.home-band-muted {
  background: #eef3f8;
}

.home-section-head {
  width: min(850px, 100%);
  margin-bottom: 28px;
}

.home-section-head h2,
.home-showcase-copy h2,
.home-offer h2 {
  margin-bottom: 14px;
  color: #17202f;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
}

.home-section-head p,
.home-showcase-copy p,
.home-offer p {
  max-width: 780px;
  font-size: 17px;
}

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

.home-feature {
  min-height: 208px;
  padding: 22px;
  border: 1px solid #d9e1ea;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-feature svg {
  width: 28px;
  height: 28px;
  color: #126c73;
  margin-bottom: 18px;
}

.home-feature h3 {
  font-size: 18px;
}

.home-method {
  background: #12242c;
  color: #ffffff;
}

.home-method .home-kicker {
  color: #9de1d8;
}

.home-method h2,
.home-method p {
  color: #ffffff;
}

.home-method .home-section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.home-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
}

.home-timeline div {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.home-timeline span {
  color: #9de1d8;
  font-weight: 900;
}

.home-timeline h3 {
  margin-top: 26px;
  color: #ffffff;
  font-size: 22px;
}

.home-timeline p {
  color: rgba(255, 255, 255, 0.72);
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  background: #f7f8fb;
}

.home-product-shot {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #cfd9e4;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(22, 38, 55, 0.18);
}

.product-topbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #12242c;
}

.product-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d7f0ed;
}

.product-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 426px;
}

.product-sidebar {
  background: #16313a;
}

.product-main {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #f5f7fb;
}

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

.product-kpis span,
.product-chart,
.product-rows span {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #d9e1ea;
}

.product-kpis span {
  height: 86px;
}

.product-chart {
  min-height: 190px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(18, 108, 115, 0.16) 22% 23%, transparent 23% 100%),
    linear-gradient(180deg, #ffffff 0%, #edf8f5 100%);
}

.product-rows {
  display: grid;
  gap: 8px;
}

.product-rows span {
  height: 30px;
}

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

.home-testimonial-grid figure {
  margin: 0;
  padding: 24px;
  border: 1px solid #d9e1ea;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.home-testimonial-grid blockquote {
  margin: 0 0 22px;
  color: #17202f;
  font-size: 17px;
  line-height: 1.55;
}

.home-testimonial-grid figcaption strong,
.home-testimonial-grid figcaption span {
  display: block;
}

.home-testimonial-grid figcaption span {
  color: #667085;
  margin-top: 4px;
}

.home-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 28px;
  background: #ffffff;
}

.home-offer-box {
  padding: 26px;
  border: 1px solid #b6d8d3;
  border-radius: var(--radius-md);
  background: #edf8f5;
}

.home-offer-label {
  color: #126c73;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-offer-box strong {
  display: block;
  margin: 8px 0 10px;
  color: #102831;
  font-size: 28px;
  line-height: 34px;
}

.home-offer-box .home-primary {
  width: 100%;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #12242c;
  color: rgba(255, 255, 255, 0.76);
}

.home-footer strong {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .home-nav {
    grid-template-columns: 1fr auto;
  }

  .home-nav-links {
    display: none;
  }

  .home-stats,
  .home-feature-grid,
  .home-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-timeline,
  .home-showcase,
  .home-offer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-nav {
    position: absolute;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-nav-cta {
    justify-self: start;
  }

  .home-hero {
    min-height: 88svh;
    padding-top: 170px;
    background-position: 60% center;
  }

  .home-hero h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .home-hero-proof,
  .home-stats,
  .home-feature-grid,
  .home-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-proof span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .home-hero-proof span:last-child {
    border-bottom: 0;
  }

  .home-actions,
  .home-primary,
  .home-secondary {
    width: 100%;
  }

  .product-layout {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .home-product-shot {
    min-height: 360px;
  }

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