:root {
  --ink: #0c1f2f;
  --ink-2: #1d3448;
  --muted: #627386;
  --line: #d8e0e8;
  --paper: #ffffff;
  --mist: #f4f7fa;
  --cyan: #00a6c8;
  --cyan-2: #dff6fb;
  --gold: #f6aa1c;
  --green: #21a67a;
  --coral: #e06452;
  --shadow: 0 24px 70px rgba(12, 31, 47, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.mobile-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(216, 224, 232, 0.76);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 112px;
}

.nav-links,
.header-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 26px;
  color: var(--ink-2);
  font-size: 15px;
}

.nav-links a,
.text-link {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--cyan);
}

.header-actions {
  justify-content: flex-end;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(246, 170, 28, 0.26);
}

.button-primary:hover {
  background: #ffc04a;
}

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

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.14);
}

.button-light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(12, 31, 47, 0.1);
}

.button-light:hover {
  border-color: #b7c7d6;
  background: #f8fbfd;
}

.menu-button,
.mobile-nav {
  display: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.section-dark {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

.section-light {
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 92px 0 84px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background:
    linear-gradient(90deg, var(--cyan), transparent 38%),
    linear-gradient(90deg, transparent 56%, var(--gold));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: 54px;
  align-items: center;
}

.hero-copy,
.product-stage {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.28;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero .eyebrow,
.results-section .eyebrow {
  color: #70e4f3;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 800px;
  font-size: 62px;
}

h2 {
  font-size: 44px;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead,
.section-heading p,
.integration-copy > p,
.split-copy p,
.diagnostic-copy p,
.tracking-grid p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c8d6e2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
  margin: 46px 0 0;
}

.hero-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-metrics dt {
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: #cad9e6;
  font-size: 13px;
}

.product-stage {
  position: relative;
  min-height: 602px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: #102b40;
  box-shadow: var(--shadow);
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stage-tab {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #d8eaf4;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.stage-tab.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 900;
}

.demo-panel {
  display: none;
}

.demo-panel.is-active {
  display: block;
}

.device-layout {
  position: relative;
  min-height: 520px;
}

.phone-mockup {
  width: 280px;
  min-height: 496px;
  border: 10px solid #06131e;
  border-radius: var(--radius);
  background: #f6f8fb;
  overflow: hidden;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.phone-bar span:last-child {
  color: #67e7b3;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.chat-bubble {
  margin: 0;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.42;
}

.chat-user {
  align-self: flex-end;
  max-width: 82%;
  color: var(--paper);
  background: var(--green);
}

.chat-ai {
  align-self: flex-start;
  max-width: 90%;
  color: var(--ink);
  background: #e8eef4;
}

.insight-panel {
  position: absolute;
  right: 6px;
  bottom: 20px;
  width: 330px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--paper);
  background: #17384f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.panel-header,
.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header span,
.dashboard-top span {
  color: #bad1df;
  font-size: 13px;
}

.panel-header strong,
.dashboard-top strong {
  color: var(--gold);
  font-size: 22px;
}

.mini-bars {
  display: grid;
  height: 120px;
  align-items: end;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.mini-bars span {
  display: block;
  border-radius: 4px 4px 0 0;
  background: var(--cyan);
}

.insight-panel p {
  margin: 16px 0 0;
  color: #dce8f0;
  font-size: 14px;
  line-height: 1.5;
}

.forecast-board,
.dashboard-mockup {
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 22px;
  background: #f7fafc;
  color: var(--ink);
}

.forecast-chart {
  width: 100%;
  min-height: 250px;
  border-radius: var(--radius);
  background: #ffffff;
}

.forecast-chart svg {
  width: 100%;
  height: 250px;
}

.chart-grid {
  fill: none;
  stroke: #e1e8ef;
  stroke-width: 1;
}

.chart-real,
.chart-forecast {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.chart-real {
  stroke: var(--cyan);
}

.chart-forecast {
  stroke: var(--gold);
  stroke-dasharray: 12 10;
}

.forecast-meta,
.decision-strip {
  display: grid;
  gap: 10px;
}

.forecast-meta {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.forecast-meta span,
.decision-strip div,
.kpi-row div,
.tracking-list div,
.result-card,
.solution-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.forecast-meta span {
  padding: 10px;
  color: var(--muted);
  background: var(--mist);
  font-size: 13px;
}

.decision-strip {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.decision-strip div {
  padding: 16px;
  color: var(--paper);
  background: #17384f;
}

.decision-strip strong,
.decision-strip span {
  display: block;
}

.decision-strip span {
  margin-top: 8px;
  color: #cde2ec;
  font-size: 13px;
}

.dashboard-mockup {
  min-height: 510px;
}

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

.kpi-row div {
  padding: 18px;
  background: var(--mist);
}

.kpi-row span,
.rank-list span {
  color: var(--muted);
  font-size: 13px;
}

.kpi-row strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 16px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 260px;
  border-radius: var(--radius);
  padding: 12px;
  background: #eaf2f6;
}

.heatmap span {
  border-radius: 5px;
  background: var(--cyan-2);
}

.heatmap span:nth-child(2n) {
  background: #9ee2ee;
}

.heatmap span:nth-child(3n) {
  background: var(--gold);
}

.heatmap span:nth-child(5n) {
  background: var(--green);
}

.rank-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rank-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.section-heading {
  max-width: 760px;
  padding: 86px 0 38px;
}

.section-heading.compact {
  padding-bottom: 34px;
}

.section-heading p,
.split-copy p,
.diagnostic-copy p,
.tracking-grid p {
  margin: 20px 0 0;
}

.integration-section {
  padding: 92px 0;
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 52px;
  align-items: start;
}

.integration-copy h2 {
  max-width: 800px;
}

.integration-copy > p {
  max-width: 760px;
  margin: 22px 0 0;
}

.access-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.access-list div,
.timeline-step,
.integration-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.access-list div {
  min-height: 126px;
  padding: 18px;
}

.access-list strong,
.access-list span,
.timeline-step small,
.timeline-step strong,
.timeline-step span,
.integration-note strong,
.integration-note span {
  display: block;
}

.access-list strong,
.timeline-step strong,
.integration-note strong {
  color: var(--ink);
  line-height: 1.25;
}

.access-list span,
.timeline-step span,
.integration-note span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

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

.timeline-panel {
  display: grid;
  gap: 14px;
}

.timeline-step {
  position: relative;
  padding: 22px 22px 22px 74px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(12, 31, 47, 0.08);
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(246, 170, 28, 0.17);
}

.timeline-step:nth-child(2)::before {
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(0, 166, 200, 0.16);
}

.timeline-step:nth-child(3)::before {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(33, 166, 122, 0.16);
}

.timeline-step small {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-note {
  padding: 20px;
  border-color: rgba(0, 166, 200, 0.3);
  background: var(--cyan-2);
}

.prints-section {
  padding: 90px 0 98px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.prints-heading {
  max-width: 900px;
  padding-top: 0;
}

.feature-print-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feature-print {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(12, 31, 47, 0.08);
}

.print-sophia,
.print-dashboard {
  grid-column: 1 / -1;
}

.print-forecast {
  grid-column: span 7;
}

.print-integration {
  grid-column: span 5;
}

.print-tracking {
  grid-column: 1 / -1;
}

.print-titlebar {
  display: flex;
  min-height: 74px;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: #fbfcfd;
}

.print-titlebar span,
.print-titlebar small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-titlebar strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}

.print-titlebar small {
  white-space: nowrap;
  color: var(--cyan);
}

.whatsapp-print,
.dashboard-print {
  display: grid;
  min-height: 508px;
}

.whatsapp-print {
  grid-template-columns: 0.38fr 0.62fr;
  background: #eef4f0;
}

.whatsapp-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid #cbd8d2;
  padding: 16px;
  background: #f8faf8;
}

.search-pill,
.contact-row {
  border-radius: var(--radius);
  padding: 12px;
}

.search-pill {
  margin: 0 0 6px;
  color: #6f8177;
  background: #edf3ef;
  font-size: 13px;
}

.contact-row {
  display: grid;
  gap: 5px;
  color: var(--ink-2);
  background: var(--paper);
}

.contact-row.is-active {
  color: var(--paper);
  background: var(--green);
}

.contact-row span {
  font-size: 13px;
  opacity: 0.78;
}

.whatsapp-thread {
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(33, 166, 122, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(33, 166, 122, 0.08) 25%, transparent 25%),
    #e3eee8;
  background-size: 28px 28px;
}

.thread-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink-2);
}

.thread-header span {
  color: #75f0bd;
  font-size: 12px;
}

.chat-table {
  width: min(100%, 440px);
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 48, 63, 0.14);
}

.chat-table div,
.forecast-table div {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebf0;
  font-size: 13px;
}

.chat-table-wide {
  width: min(100%, 560px);
}

.chat-table-wide div {
  grid-template-columns: 0.58fr 1.62fr 0.8fr;
}

.chat-table div:first-child,
.forecast-table div:first-child {
  color: var(--paper);
  background: var(--ink-2);
  font-size: 12px;
  text-transform: uppercase;
}

.chat-table div:last-child,
.forecast-table div:last-child {
  border-bottom: 0;
}

.voice-note {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  max-width: 74%;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--paper);
  background: var(--green);
}

.voice-note span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.72) 41% 58%, transparent 59%),
    rgba(255, 255, 255, 0.18);
}

.voice-note strong,
.voice-note small {
  font-size: 12px;
}

.voice-note small {
  opacity: 0.82;
}

.attachment-pill {
  width: min(100%, 360px);
  border: 1px solid rgba(33, 166, 122, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 48, 63, 0.12);
}

.attachment-pill strong,
.attachment-pill span {
  display: block;
}

.attachment-pill strong {
  font-size: 13px;
}

.attachment-pill span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-print {
  grid-template-columns: 170px 1fr;
  background: #f4f7fa;
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: var(--paper);
  background: var(--ink);
}

.dashboard-sidebar strong {
  margin-bottom: 8px;
}

.dash-nav {
  border-radius: var(--radius);
  padding: 11px 12px;
  color: #c5d5e2;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.dash-nav.active {
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.dashboard-main {
  padding: 18px;
}

.filter-row,
.dashboard-kpis,
.dashboard-visuals {
  display: grid;
  gap: 12px;
}

.filter-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.filter-row span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

.dashboard-kpis {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.dashboard-kpis-four {
  grid-template-columns: repeat(4, 1fr);
}

.dashboard-kpis div {
  border-radius: var(--radius);
  padding: 15px;
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(12, 31, 47, 0.06);
}

.dashboard-kpis span,
.dashboard-kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-kpis strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.1;
}

.dashboard-kpis small {
  color: var(--green);
  font-weight: 900;
}

.dashboard-visuals {
  grid-template-columns: 1fr 0.72fr;
}

.wide-chart {
  display: grid;
  min-height: 246px;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.wide-chart span {
  display: block;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), #0d7891);
}

.wide-chart span:nth-child(4n),
.wide-chart span:nth-child(6n) {
  background: linear-gradient(180deg, var(--gold), #d4840d);
}

.store-ranking {
  display: grid;
  gap: 10px;
  align-content: start;
}

.store-ranking p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
}

.store-ranking span {
  color: var(--muted);
}

.risk-ranking p {
  border-left: 4px solid var(--coral);
}

.dashboard-table,
.erp-table {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.dashboard-table div,
.erp-table div {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #e4ebf0;
  padding: 10px 12px;
  font-size: 12px;
}

.dashboard-table div {
  grid-template-columns: 0.7fr 1.8fr 0.7fr;
}

.erp-table div {
  grid-template-columns: 0.8fr 1.2fr;
}

.dashboard-table div:first-child,
.erp-table div:first-child {
  color: var(--paper);
  background: var(--ink-2);
  font-size: 11px;
  text-transform: uppercase;
}

.dashboard-table div:last-child,
.erp-table div:last-child {
  border-bottom: 0;
}

.forecast-print {
  padding: 18px;
  background: #102b40;
}

.forecast-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.forecast-metrics div {
  border-radius: var(--radius);
  padding: 14px;
  color: var(--paper);
  background: #17384f;
}

.forecast-metrics span,
.forecast-metrics strong {
  display: block;
}

.forecast-metrics span {
  color: #b9cedc;
  font-size: 12px;
}

.forecast-metrics strong {
  margin-top: 8px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.1;
}

.forecast-screen-chart {
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
}

.forecast-screen-chart svg {
  width: 100%;
  height: 240px;
}

.forecast-table {
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.forecast-table div {
  grid-template-columns: 0.8fr 0.8fr 0.9fr 1.1fr;
}

.forecast-table-five div {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.7fr 0.7fr;
}

.erp-print {
  display: grid;
  gap: 14px;
  min-height: 500px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(0, 166, 200, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 166, 200, 0.08) 1px, transparent 1px),
    #f7fafc;
  background-size: 32px 32px;
}

.erp-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.erp-flow div {
  position: relative;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(12, 31, 47, 0.06);
}

.erp-flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--cyan);
}

.erp-flow strong,
.erp-flow span {
  display: block;
}

.erp-flow strong {
  font-size: 18px;
}

.erp-flow span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.integration-proof {
  border: 1px solid rgba(246, 170, 28, 0.42);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff8e9;
}

.integration-proof strong,
.integration-proof span {
  display: block;
}

.integration-proof span {
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.45;
}

.document-shot {
  height: 500px;
  overflow: auto;
  padding: 14px;
  background: #e8eef4;
}

.document-shot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(12, 31, 47, 0.18);
}

.tracking-print {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #101820;
}

.event-console {
  display: grid;
  gap: 8px;
}

.event-console p {
  display: grid;
  grid-template-columns: 74px 1fr 1.2fr;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  color: #d7e8ef;
  background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.event-console span {
  color: #90a4b2;
}

.event-console strong {
  color: var(--gold);
}

.event-console em {
  color: #70e4f3;
  font-style: normal;
}

.funnel-print {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.funnel-print div {
  border-radius: var(--radius);
  padding: 16px;
  color: var(--paper);
  background: #17384f;
}

.funnel-print strong,
.funnel-print span {
  display: block;
}

.funnel-print strong {
  color: var(--gold);
  font-size: 28px;
}

.funnel-print span {
  margin-top: 6px;
  color: #cfe1eb;
  font-size: 13px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 92px;
}

.solution-card {
  padding: 26px;
  background: var(--paper);
}

.solution-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--cyan);
  font-weight: 900;
}

.icon-gold {
  color: var(--ink);
  background: var(--gold);
}

.icon-green {
  background: var(--green);
}

.solution-card p {
  min-height: 104px;
  color: var(--muted);
  line-height: 1.58;
}

.solution-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.solution-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 14px;
}

.solution-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.section-split {
  padding: 92px 0;
  background: var(--mist);
}

.split-grid,
.tracking-grid,
.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.flow-rail {
  display: grid;
  gap: 12px;
}

.flow-step {
  position: relative;
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--paper);
}

.flow-step:nth-child(2) {
  border-left-color: var(--gold);
}

.flow-step:nth-child(3) {
  border-left-color: var(--green);
}

.flow-step:nth-child(4) {
  border-left-color: var(--coral);
}

.flow-step strong,
.flow-step span {
  display: block;
}

.flow-step span {
  margin-top: 8px;
  color: var(--muted);
}

.results-section {
  padding: 88px 0 96px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.result-card {
  border-color: rgba(255, 255, 255, 0.16);
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.result-card strong {
  display: block;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.result-card span {
  display: block;
  margin-top: 16px;
  color: #d6e3ee;
  line-height: 1.45;
}

.clients-section {
  padding: 84px 0;
}

.client-intro {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.logo-strip img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.section-track {
  padding: 92px 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #123149;
  background-size: 54px 54px;
}

.section-track .eyebrow {
  color: #70e4f3;
}

.section-track p {
  color: #d4e2eb;
}

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

.tracking-list div {
  border-color: rgba(255, 255, 255, 0.16);
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.tracking-list strong,
.tracking-list span {
  display: block;
}

.tracking-list strong {
  color: var(--gold);
}

.tracking-list span {
  margin-top: 8px;
  color: #d6e5ef;
  font-size: 14px;
}

.diagnostic-section {
  padding: 96px 0;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-2);
  font-weight: 800;
}

.contact-lines a:hover {
  color: var(--cyan);
}

.contact-lines .button {
  justify-self: start;
}

.sophia-entry-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(12, 31, 47, 0.12);
}

.sophia-entry-panel .thread-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: var(--ink);
}

.sophia-entry-panel .chat-list {
  padding: 0;
  max-height: none;
}

.sophia-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sophia-checklist div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--mist);
}

.sophia-checklist strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 13px;
}

.sophia-checklist span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid img {
  width: 92px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid a {
  color: var(--ink);
  font-weight: 900;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.site-chat-launcher,
.site-chat-panel {
  pointer-events: auto;
}

.site-chat.is-open .site-chat-launcher {
  display: none;
}

.site-chat-launcher {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 156px;
  min-height: 56px;
  border: 1px solid rgba(12, 31, 47, 0.16);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 18px 42px rgba(12, 31, 47, 0.24);
  cursor: pointer;
}

.site-chat-launcher strong,
.site-chat-launcher small {
  display: block;
  line-height: 1.05;
  text-align: left;
}

.site-chat-launcher small {
  margin-top: 3px;
  color: rgba(12, 31, 47, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.launcher-status {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(33, 166, 122, 0.18);
}

.site-chat-panel {
  width: min(390px, calc(100vw - 32px));
  border: 1px solid rgba(216, 224, 232, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(12, 31, 47, 0.28);
}

.site-chat-panel[hidden] {
  display: none;
}

.site-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--paper);
  background: var(--ink);
}

.site-chat-header strong,
.site-chat-header span {
  display: block;
}

.site-chat-header span {
  margin-top: 4px;
  color: #bfd4e2;
  font-size: 13px;
}

.site-chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-chat-notice {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--ink-2);
  background: var(--cyan-2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.site-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  min-height: 190px;
  overflow-y: auto;
  padding: 16px;
  background: var(--mist);
}

.site-chat-bubble {
  max-width: 88%;
  margin: 0;
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.42;
}

.site-chat-bubble.is-ai {
  justify-self: start;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(12, 31, 47, 0.08);
}

.site-chat-bubble.is-user {
  justify-self: end;
  color: var(--paper);
  background: var(--ink-2);
}

.site-chat-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--paper);
}

.site-chat-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink-2);
  background: var(--paper);
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  font-weight: 900;
  cursor: pointer;
}

.site-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: var(--paper);
}

.site-chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: var(--mist);
  outline: none;
}

.site-chat-form input:focus {
  border-color: var(--cyan);
  background: var(--paper);
}

.site-chat-form button {
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.site-chat-handoff {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--green);
  font-weight: 900;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-grid,
  .integration-grid,
  .split-grid,
  .tracking-grid,
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .product-stage {
    max-width: 720px;
  }

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

  .print-sophia,
  .print-dashboard,
  .print-forecast,
  .print-integration,
  .print-tracking {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(720px, calc(100% - 32px));
  }

  .header-grid {
    display: flex;
    justify-content: space-between;
    min-height: 70px;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 2;
    border-color: #a9b8c6;
    background: var(--mist);
  }

  .mobile-nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(100% - 32px, 720px);
    margin: 0 auto;
    padding: 0 0 16px;
  }

  .mobile-open .mobile-nav {
    display: grid;
  }

  .mobile-nav a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    background: var(--paper);
  }

  .hero {
    min-height: 0;
    padding: 64px 0 72px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lead,
  .section-heading p,
  .split-copy p,
  .diagnostic-copy p,
  .tracking-grid p {
    font-size: 17px;
  }

  .hero-metrics,
  .access-list,
  .forecast-meta,
  .decision-strip,
  .tracking-list,
  .logo-strip,
  .client-intro {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 0;
  }

  .device-layout {
    display: grid;
    gap: 14px;
    min-height: 0;
  }

  .phone-mockup,
  .insight-panel {
    position: static;
    width: 100%;
  }

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

  .prints-section {
    padding: 68px 0;
  }

  .print-titlebar,
  .thread-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-titlebar small {
    white-space: normal;
  }

  .whatsapp-print,
  .dashboard-print,
  .filter-row,
  .dashboard-kpis,
  .dashboard-visuals {
    grid-template-columns: 1fr;
  }

  .whatsapp-sidebar,
  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .erp-flow {
    grid-template-columns: 1fr;
  }

  .erp-flow div:not(:last-child)::after {
    display: none;
  }

  .document-shot {
    height: 420px;
  }

  .event-console p {
    grid-template-columns: 1fr;
  }

  .heatmap {
    min-height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 94px;
  }

  .stage-tabs,
  .solution-grid,
  .results-grid,
  .kpi-row,
  .forecast-metrics,
  .sophia-checklist,
  .funnel-print {
    grid-template-columns: 1fr;
  }

  .chat-table div,
  .forecast-table div,
  .dashboard-table div,
  .erp-table div {
    grid-template-columns: 1fr;
  }

  .voice-note {
    max-width: 100%;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-heading {
    padding-top: 64px;
  }

  .solution-grid {
    padding-bottom: 68px;
  }

  .section-split,
  .section-track,
  .diagnostic-section,
  .clients-section,
  .results-section {
    padding: 68px 0;
  }

  .site-chat {
    right: 12px;
    bottom: 12px;
  }

  .site-chat-panel {
    width: calc(100vw - 24px);
  }

  .site-chat-messages {
    min-height: 160px;
    max-height: 240px;
  }

  .site-chat-launcher {
    grid-template-columns: 1fr;
    place-items: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
    border-radius: 50%;
    padding: 0;
  }

  .site-chat-launcher strong {
    font-size: 0;
  }

  .site-chat-launcher strong::after {
    content: "S";
    font-size: 25px;
    line-height: 1;
  }

  .site-chat-launcher small {
    display: none;
  }

  .site-chat-launcher .launcher-status {
    position: absolute;
    left: 11px;
    top: 11px;
    width: 10px;
    height: 10px;
  }

  .site-chat-form {
    grid-template-columns: 1fr 94px;
  }
}
