/*
Theme Name: WinningFunnel
Theme URI: https://winningfunnel.com/
Author: WinningFunnel
Author URI: https://winningfunnel.com/
Description: Custom landing page theme for WinningFunnel.
Version: 1.1.0
Text Domain: winningfunnel
*/

:root {
  --ink: #182230;
  --muted: #5d6876;
  --paper: #fbfaf7;
  --line: #dfe6eb;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #16a34a;
  --gold: #d89b18;
  --red: #dc2626;
  --dark: #111827;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 34, 48, 0.09);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dark);
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(24, 34, 48, 0.18);
  background: var(--white);
  color: var(--ink);
}

.disabled-button {
  cursor: default;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  padding: 56px 0 48px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 780;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(43px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.proof-item {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.proof-number {
  display: block;
  color: var(--dark);
  font-size: 24px;
  font-weight: 850;
}

.proof-label {
  color: var(--muted);
  font-size: 13px;
}

.command-center {
  position: relative;
  min-height: 570px;
  padding: 18px;
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: #eef4f7;
  box-shadow: 0 28px 90px rgba(24, 34, 48, 0.14);
}

.app-shell {
  display: grid;
  grid-template-columns: 150px 1fr;
  height: 100%;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: var(--white);
}

.app-sidebar {
  padding: 18px 14px;
  background: #162033;
  color: var(--white);
}

.app-sidebar strong {
  display: block;
  margin-bottom: 22px;
  font-size: 14px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.app-nav-item.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.app-main {
  padding: 20px;
  background: #f6f8fa;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.app-top h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.app-top p {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.metric {
  min-height: 94px;
  padding: 13px;
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.workflow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.workflow-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.workflow-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 850;
}

.workflow-row strong {
  display: block;
  font-size: 14px;
}

.workflow-row span {
  color: var(--muted);
  font-size: 12px;
}

.mini-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
}

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

.service {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  font-weight: 850;
}

.service h3,
.case-copy h3,
.step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service p,
.case-copy p,
.step p {
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 18px;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.case:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.case:nth-child(even) .case-copy {
  order: 2;
}

.case.case-command {
  grid-template-columns: minmax(280px, 0.68fr) minmax(620px, 1.32fr);
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.case-copy h3 {
  font-size: 29px;
  line-height: 1.1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.case-visual {
  display: flex;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: #f5f7f9;
}

.browser-window {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(24, 34, 48, 0.1);
  background: #ffffff;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5df;
}

.browser-url {
  min-width: 0;
  margin-left: 8px;
  padding: 4px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen {
  flex: 1;
  padding: 22px;
}

.screen-command {
  background: linear-gradient(135deg, #f7fbff 0%, #edf7f5 100%);
}

.ecom-cockpit {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 346px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.ecom-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px;
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.ecom-rail strong {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 13px;
}

.ecom-rail span {
  padding: 8px;
  border-radius: 6px;
}

.ecom-rail span.active {
  background: rgba(45, 212, 191, 0.15);
  color: #ffffff;
}

.ecom-stage {
  min-width: 0;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f3 100%);
}

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

.ecom-hero-row .mock-title {
  margin-bottom: 5px;
  font-size: 22px;
}

.ecom-hero-row p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.sync-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.11);
  color: #0f766e;
  font-size: 11px;
  font-weight: 820;
}

.integration-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.integration-strip div,
.ops-card,
.inventory-board,
.order-note {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.integration-strip div {
  min-height: 58px;
  padding: 10px;
}

.integration-strip span,
.product-card span,
.forecast-card small,
.order-note span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.integration-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
  gap: 8px;
  margin-bottom: 10px;
}

.ops-card {
  min-height: 116px;
  padding: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.product-art {
  display: grid;
  width: 74px;
  height: 86px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(160deg, #dbeafe 0%, #ccfbf1 100%);
}

.product-art span {
  width: 38px;
  height: 58px;
  border-radius: 7px 7px 11px 11px;
  background: #ffffff;
  box-shadow: inset 0 0 0 6px rgba(15, 118, 110, 0.16), 0 12px 20px rgba(15, 23, 42, 0.13);
}

.product-card strong,
.forecast-card strong,
.order-note strong {
  display: block;
  color: var(--ink);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.signal-row em {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.forecast-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forecast-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 58px;
  margin: 8px 0;
}

.forecast-bars span {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #2563eb 0%, #0f766e 100%);
}

.inventory-board {
  overflow: hidden;
  font-size: 11px;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.35fr) minmax(82px, 1fr) 0.5fr 0.7fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.inventory-row.head {
  border-top: 0;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-weight: 820;
}

.inventory-row.hot span:nth-child(2) {
  color: #b45309;
  font-weight: 780;
}

.inventory-row.risk span:nth-child(2) {
  color: #b91c1c;
  font-weight: 780;
}

.order-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
}

.order-note span {
  grid-column: 1;
}

.order-note .mini-button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ecom-showcase {
  min-height: 520px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.ecom-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ecom-showcase-head .mock-title {
  margin-bottom: 6px;
  font-size: 26px;
}

.ecom-showcase-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.pulse-card,
.momentum-panel,
.subscription-panel {
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.pulse-card {
  min-height: 110px;
  padding: 12px;
}

.pulse-card span,
.pulse-card small,
.sub-stats span {
  display: block;
  color: var(--muted);
}

.pulse-card span,
.sub-stats span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 22px;
}

.pulse-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.pulse-card em.down {
  color: #b91c1c;
}

.pulse-card em.up {
  color: #15803d;
}

.pulse-card small {
  margin-top: 4px;
  font-size: 12px;
}

.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.9fr);
  gap: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border-bottom: 1px solid rgba(24, 34, 48, 0.1);
  background: #f9fafb;
}

.panel-head strong {
  font-size: 17px;
}

.momentum-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 14px;
}

.channel-mix > strong,
.product-list > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.channel-mix div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  color: var(--muted);
}

.channel-mix b {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0f766e);
}

.channel-mix div::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 8px;
  border-radius: 999px;
  background: #e7edf0;
  content: "";
}

.channel-mix b {
  z-index: 1;
}

.product-list div,
.sub-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.product-list span,
.sub-list span {
  color: #5b21b6;
  font-weight: 850;
}

.product-list em,
.sub-list em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.sub-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.sub-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
}

.sub-list {
  padding: 0 16px 16px;
}

.ops-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ops-ribbon span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 820;
}

.ecom-slides {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.ecom-slide-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  animation: ecomPanel 16s infinite;
}

.ecom-slide-panel:nth-child(2) {
  animation-delay: 8s;
}

@keyframes ecomPanel {
  0%,
  43% {
    opacity: 1;
    transform: translateX(0);
  }

  50%,
  100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.ops-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.85fr);
  gap: 12px;
}

.movers-panel,
.signals-panel,
.risk-panel,
.campaign-panel {
  overflow: hidden;
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.movers-panel,
.risk-panel {
  grid-column: 1;
}

.signals-panel,
.campaign-panel {
  grid-column: 2;
}

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

.movers-columns > div > strong {
  display: block;
  margin-bottom: 10px;
}

.movers-columns div div,
.signal-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.movers-columns span,
.signal-list span {
  color: #5b21b6;
  font-weight: 850;
}

.movers-columns em,
.signal-list em {
  font-style: normal;
  font-weight: 850;
}

.movers-columns small,
.signal-list small,
.campaign-item small {
  grid-column: 1;
  color: var(--muted);
}

.signal-list {
  padding: 12px 14px;
}

.signal-list em,
.campaign-item em {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.signal-list em.alert {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.signal-list em.ok,
.campaign-item em {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

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

.risk-stats div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
}

.risk-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-stats strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 26px;
}

.risk-stats small,
.campaign-item small {
  color: var(--muted);
}

.campaign-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 14px;
}

.campaign-item span {
  color: #5b21b6;
  font-weight: 850;
}

.estate-showcase {
  min-height: 540px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0 0%, #f8fafc 100%);
}

.estate-showcase-head {
  margin-bottom: 12px;
}

.estate-showcase-head .mock-title {
  margin-bottom: 6px;
  font-size: 26px;
}

.estate-showcase-head p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.estate-slides {
  position: relative;
  min-height: 435px;
  overflow: hidden;
}

.estate-slide-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  animation: estatePanel 16s infinite;
}

.estate-slide-panel:nth-child(2) {
  animation-delay: 8s;
}

@keyframes estatePanel {
  0%,
  43% {
    opacity: 1;
    transform: translateX(0);
  }

  50%,
  100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.estate-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.estate-pulse-card,
.estate-panel {
  border: 1px solid rgba(24, 34, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.estate-pulse-card {
  min-height: 92px;
  padding: 12px;
}

.estate-pulse-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.estate-pulse-card strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 25px;
}

.estate-pulse-card small {
  color: var(--muted);
}

.estate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr);
  gap: 12px;
}

.estate-grid.second {
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.85fr);
}

.matter-list,
.portal-preview,
.decision-list {
  padding: 12px 14px;
}

.matter-list div,
.decision-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.matter-list span,
.decision-list span {
  color: #7c2d12;
  font-weight: 850;
}

.matter-list em,
.decision-list em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(216, 155, 24, 0.12);
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.matter-list small {
  grid-column: 1;
  color: var(--muted);
}

.portal-preview {
  display: grid;
  gap: 9px;
}

.portal-preview div {
  padding: 10px;
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: 8px;
  background: #fffaf0;
}

.portal-preview strong,
.portal-preview span {
  display: block;
}

.portal-preview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.doc-flow div {
  min-height: 128px;
  padding: 10px;
  border: 1px solid rgba(24, 34, 48, 0.09);
  border-radius: 8px;
  background: #ffffff;
}

.doc-flow span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 8px;
  background: #7c2d12;
  color: #ffffff;
  font-weight: 850;
}

.doc-flow strong,
.doc-flow small {
  display: block;
}

.doc-flow small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.estate-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.estate-ribbon span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.1);
  color: #7c2d12;
  font-size: 12px;
  font-weight: 820;
}

.estate-showcase {
  display: block;
  min-height: 520px;
  padding: 0;
  border-color: rgba(148, 189, 76, 0.28);
  background: #ffffff;
}

.estate-sidebar {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 16px 10px;
  background: #a8c957;
  color: #111827;
  font-size: 11px;
}

.estate-sidebar strong {
  margin-bottom: 12px;
  color: #3f4f23;
  font-size: 15px;
}

.estate-sidebar span {
  padding: 7px 8px;
  border-radius: 6px;
  font-weight: 760;
}

.estate-sidebar span.active {
  background: rgba(255, 255, 255, 0.55);
}

.estate-slides {
  min-height: 520px;
  padding: 16px;
  background: #fbfcfd;
}

.estate-slide-panel {
  animation: estateReportPanel 21s infinite;
}

.estate-slide-panel:nth-child(2) {
  animation-delay: 7s;
}

.estate-slide-panel:nth-child(3) {
  animation-delay: 14s;
}

@keyframes estateReportPanel {
  0%,
  28% {
    opacity: 1;
    transform: translateX(0);
  }

  33%,
  100% {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.estate-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.estate-report-head .mock-title {
  margin-bottom: 4px;
  font-size: 22px;
}

.estate-report-head p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.estate-report-head > span {
  color: #64748b;
  font-size: 12px;
}

.estate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.estate-tabs span {
  padding: 6px 9px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 780;
}

.estate-tabs span.active {
  border-color: #9cc34a;
  background: #9cc34a;
  color: #ffffff;
}

.estate-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.estate-metric-grid div,
.estate-funnel,
.estate-report-panel {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
}

.estate-metric-grid div {
  min-height: 78px;
  padding: 10px;
  border-top: 2px solid #9cc34a;
}

.estate-metric-grid span,
.estate-report-panel > strong {
  display: block;
  color: #475569;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.estate-metric-grid strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 20px;
  font-weight: 760;
}

.estate-metric-grid small {
  color: #64748b;
  font-size: 10px;
}

.estate-metric-grid small.up {
  color: #15803d;
  font-weight: 820;
}

.estate-metric-grid small.down {
  color: #b91c1c;
  font-weight: 820;
}

.estate-funnel {
  padding: 12px;
}

.estate-funnel > strong {
  display: block;
  margin-bottom: 10px;
}

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

.funnel-steps span {
  display: grid;
  min-height: 50px;
  place-items: center;
  background: #8cad3f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
}

.funnel-steps span:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.funnel-steps small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
}

.estate-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
  gap: 10px;
}

.estate-report-panel {
  padding: 12px;
}

.estate-report-panel.full {
  grid-column: 1 / -1;
}

.estate-bars div,
.estate-small-table div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.estate-bars b {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #9cc34a;
}

.estate-bars span,
.estate-small-table span {
  font-weight: 720;
}

.estate-bars em,
.estate-small-table em {
  color: var(--ink);
  font-style: normal;
  font-weight: 760;
}

.estate-bars small,
.estate-small-table small {
  grid-column: 1 / -1;
  color: #8090a6;
}

.estate-performance {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
}

.estate-performance span {
  color: #64748b;
  font-weight: 720;
  text-transform: uppercase;
}

.estate-performance strong,
.estate-performance em {
  padding-top: 8px;
  border-top: 1px solid #dbe3ee;
  font-style: normal;
}

.estate-metric-grid.ads {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.estate-small-table.followup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.estate-small-table.followup div {
  display: block;
  padding: 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
}

.growth-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.growth-system-grid div {
  position: relative;
  min-height: 88px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 3px 0 0 #9cc34a;
}

.growth-system-grid strong,
.growth-system-grid span {
  display: block;
}

.growth-system-grid strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.growth-system-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.growth-action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
}

.growth-action-list div {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 12px 12px 12px 34px;
  border-right: 1px solid #dbe3ee;
  background: #ffffff;
}

.growth-action-list div:last-child {
  border-right: 0;
}

.growth-action-list div::before {
  position: absolute;
  top: 16px;
  left: 13px;
  width: 11px;
  height: 11px;
  border: 2px solid #9cc34a;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.growth-action-list span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.growth-action-list em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.screen-legacy {
  background: linear-gradient(135deg, #fff8ea 0%, #f6f8fb 100%);
}

.screen-drug {
  background: linear-gradient(135deg, #f0fdf4 0%, #f7f8fb 100%);
}

.screen-custom {
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
}

.mock-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 850;
}

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

.mock-card {
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(24, 34, 48, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.mock-card strong {
  display: block;
  margin-bottom: 10px;
}

.mock-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.bars {
  display: grid;
  gap: 7px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(24, 34, 48, 0.13);
}

.bar.short {
  width: 62%;
}

.bar.mid {
  width: 78%;
}

.lookup-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.lookup-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(24, 34, 48, 0.14);
  border-radius: 8px;
  color: var(--muted);
}

.portal-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.portal-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(24, 34, 48, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.portal-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold);
}

.portal-row strong {
  display: block;
  font-size: 13px;
}

.portal-row span {
  color: var(--muted);
  font-size: 12px;
}

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

.step {
  padding: 24px;
  border-left: 4px solid var(--blue);
  background: var(--white);
}

.step:nth-child(2) {
  border-color: var(--teal);
}

.step:nth-child(3) {
  border-color: var(--gold);
}

.cta {
  background: var(--dark);
  color: var(--white);
}

.cta .section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

.cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.cta .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--dark);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-inner,
  .case,
  .case:nth-child(even),
  .case.case-command,
  .cta .section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .case:nth-child(even) .case-copy {
    order: 0;
  }

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

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner,
  .section,
  .site-footer,
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .hero-proof,
  .service-grid,
  .steps,
  .metric-grid,
  .mock-grid {
    grid-template-columns: 1fr;
  }

  .ecom-cockpit {
    grid-template-columns: 1fr;
  }

  .ecom-rail {
    display: none;
  }

  .ecom-hero-row,
  .order-note {
    flex-direction: column;
  }

  .integration-strip,
  .ops-grid,
  .pulse-grid,
  .commerce-grid,
  .momentum-body,
  .sub-stats,
  .ops-dashboard-grid,
  .movers-columns,
  .risk-stats,
  .estate-pulse-grid,
  .estate-grid,
  .estate-grid.second,
  .doc-flow {
    grid-template-columns: 1fr;
  }

  .ecom-showcase,
  .estate-showcase {
    padding: 14px;
  }

  .ecom-slides {
    min-height: 1010px;
  }

  .estate-slides {
    min-height: 1035px;
    padding: 12px;
  }

  .ecom-slide-panel,
  .estate-slide-panel {
    transform: none;
  }

  .ecom-showcase-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movers-panel,
  .risk-panel,
  .signals-panel,
  .campaign-panel {
    grid-column: 1;
  }

  .estate-showcase {
    grid-template-columns: 1fr;
  }

  .estate-sidebar {
    display: none;
  }

  .estate-metric-grid,
  .estate-metric-grid.ads,
  .estate-report-grid,
  .funnel-steps,
  .estate-small-table.followup,
  .growth-system-grid,
  .growth-action-list,
  .estate-performance {
    grid-template-columns: 1fr;
  }

  .growth-action-list div {
    border-right: 0;
    border-bottom: 1px solid #dbe3ee;
  }

  .growth-action-list div:last-child {
    border-bottom: 0;
  }

  .funnel-steps span,
  .funnel-steps span:first-child {
    clip-path: none;
    border-radius: 8px;
  }

  .inventory-board {
    overflow-x: auto;
  }

  .inventory-row {
    min-width: 560px;
  }

  .order-note {
    display: flex;
    align-items: flex-start;
  }

  .order-note .mini-button {
    width: fit-content;
  }

  .command-center {
    min-height: auto;
    padding: 10px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .app-sidebar {
    display: none;
  }

  .app-top,
  .workflow-row,
  .portal-row {
    grid-template-columns: 1fr;
  }

  .workflow-row,
  .portal-row {
    align-items: start;
  }

  .case {
    padding: 10px;
  }

  .case-copy,
  .screen {
    padding: 16px;
  }
}
