/* Fonts loaded via <link> tags in HTML for performance */

:root {
  --mk-bg: #f4f0e8;
  --mk-bg-strong: #fffaf2;
  --mk-surface: rgba(255, 250, 242, 0.86);
  --mk-surface-strong: #fffdf8;
  --mk-ink: #173042;
  --mk-ink-soft: #2f4a5a;
  --mk-muted: #657a87;
  --mk-line: rgba(23, 48, 66, 0.12);
  --mk-brand: #0b8f86;
  --mk-brand-strong: #086e69;
  --mk-brand-soft: rgba(11, 143, 134, 0.12);
  --mk-accent: #f2a33a;
  --mk-success: #2d9d65;
  --mk-warning: #d98528;
  --mk-danger: #cf4f4f;
  --mk-shadow-soft: 0 18px 50px rgba(23, 48, 66, 0.08);
  --mk-shadow-card: 0 20px 60px rgba(23, 48, 66, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--mk-ink-soft);
  background:
    radial-gradient(circle at top left, rgba(11, 143, 134, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(242, 163, 58, 0.14), transparent 22%),
    linear-gradient(180deg, #f6f2ea 0%, #fbf8f2 30%, #f2eee6 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--mk-ink);
  letter-spacing: -0.035em;
}

h1,
h2 {
  font-weight: 600;
}

p,
li {
  color: var(--mk-ink-soft);
}

.display-accent,
.headline em,
.section-heading em,
.cta-panel h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: normal;
  font-weight: 400;
}

.container {
  max-width: 1240px;
}

header {
  background: rgba(255, 251, 244, 0.76);
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  box-shadow: none;
}

nav {
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-image {
  width: auto;
  height: 36px;
}

.nav-links {
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--mk-ink-soft);
  font-size: 0.96rem;
}

.nav-links a::after {
  background: var(--mk-brand);
}

.nav-links a:hover {
  color: var(--mk-ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--mk-ink);
  color: #fffdf9;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-cta:hover {
  background: var(--mk-brand-strong);
  transform: translateY(-1px);
}

.btn {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--mk-ink);
}

.btn-primary:hover {
  background: var(--mk-brand-strong);
  box-shadow: var(--mk-shadow-card);
}

.btn-secondary {
  color: var(--mk-ink);
  border-color: rgba(23, 48, 66, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.btn-secondary:hover {
  color: var(--mk-ink);
  border-color: rgba(23, 48, 66, 0.24);
  background: rgba(255, 255, 255, 0.82);
}

.marketing-home {
  padding-top: 5.5rem;
}

.hero-sales {
  padding: 2rem 0 0;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 243, 235, 0.94)),
    linear-gradient(180deg, rgba(11, 143, 134, 0.04), transparent 45%);
  box-shadow: var(--mk-shadow-soft);
}

.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(11, 143, 134, 0.12), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(242, 163, 58, 0.14), transparent 20%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 2rem;
  align-items: stretch;
  padding: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--mk-brand);
  box-shadow: 0 0 0 6px rgba(11, 143, 134, 0.14);
}

.headline {
  margin-bottom: 1rem;
  max-width: 12ch;
  font-size: clamp(2.8rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.meta-chip {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.meta-chip strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--mk-ink);
  font-size: 0.95rem;
}

.meta-chip span {
  display: block;
  color: var(--mk-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-console {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 48, 66, 0.98), rgba(18, 36, 50, 0.98));
  color: #edf5f4;
  box-shadow: 0 24px 70px rgba(14, 24, 34, 0.28);
}

.console-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0.3rem 0;
}

.console-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(237, 245, 244, 0.72);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 157, 101, 0.14);
  color: #b8f1d3;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: currentColor;
}

.console-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.console-panel {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.console-panel h3 {
  color: #f5fbfb;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.console-note {
  margin-bottom: 1rem;
  color: rgba(237, 245, 244, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.queue-list,
.signal-list,
.sales-list,
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.queue-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-item + .queue-item {
  margin-top: 0.8rem;
}

.queue-item strong,
.scan-card strong {
  color: #ffffff;
}

.queue-item span,
.scan-card span {
  color: rgba(237, 245, 244, 0.7);
  font-size: 0.88rem;
}

.queue-item.is-live {
  background: rgba(11, 143, 134, 0.16);
  border-color: rgba(11, 143, 134, 0.3);
}

.scan-card {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(242, 163, 58, 0.22), rgba(242, 163, 58, 0.08));
  border: 1px solid rgba(242, 163, 58, 0.24);
}

.scan-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.signal-list {
  display: grid;
  gap: 0.7rem;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-row strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.signal-row span {
  justify-self: end;
  color: rgba(237, 245, 244, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row em {
  grid-column: 1 / -1;
  color: rgba(237, 245, 244, 0.78);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.signal-row.is-orange {
  box-shadow: inset 0 0 0 1px rgba(242, 163, 58, 0.42);
}

.signal-row.is-green {
  box-shadow: inset 0 0 0 1px rgba(45, 157, 101, 0.42);
}

.signal-row.is-red {
  box-shadow: inset 0 0 0 1px rgba(207, 79, 79, 0.42);
}

.console-summary {
  margin-top: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.console-summary strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.console-summary span {
  display: block;
  color: rgba(237, 245, 244, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section-shell {
  padding: 5.5rem 0 0;
}

.section-shell.compact {
  padding-top: 4.5rem;
}

.section-intro {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--mk-brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 0.85rem;
  max-width: 13ch;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1.12;
  text-wrap: balance;
}

.section-intro p,
.section-copy {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.7;
}

.surface-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.sales-card,
.surface-panel,
.comparison-shell,
.cta-panel,
.roi-calculator,
.contact-option,
.contact-info-card,
.phase-content.active,
.feature-showcase,
.integration-highlight,
.timeline-step,
.faq-item,
.spec-card,
.support-tier,
.metric-card,
.capability-card,
.error-type,
.process-item,
.method-item,
.workflow-step {
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--mk-shadow-soft);
}

.sales-card {
  padding: 1.6rem;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.06);
  color: var(--mk-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.sales-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.sales-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.7rem;
}

.sales-list li::before {
  content: '';
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--mk-brand);
}

.workflow-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-stepper::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 11%;
  right: 11%;
  height: 1px;
  background: rgba(23, 48, 66, 0.14);
}

.stepper-item {
  position: relative;
  z-index: 1;
  padding-top: 2.6rem;
}

.stepper-index {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--mk-ink);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.stepper-item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.stepper-item p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.7;
}

.comparison-shell {
  overflow: hidden;
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--mk-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(23, 48, 66, 0.04);
}

.comparison-table td:first-child {
  width: 24%;
  color: var(--mk-ink);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.roi-calculator {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 240, 232, 0.92)),
    radial-gradient(circle at top right, rgba(11, 143, 134, 0.08), transparent 30%);
}

.calculator-frame {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 1.4rem;
  align-items: start;
}

.calculator-panel,
.calculator-assumptions {
  border-radius: 22px;
  border: 1px solid rgba(23, 48, 66, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.calculator-panel {
  padding: 1.4rem;
}

.calculator-assumptions {
  padding: 1.35rem 1.4rem;
}

.calculator-assumptions h3,
.calculator-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.calculator-assumptions p,
.calculator-note {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.calculator-note {
  color: var(--mk-muted);
}

.calculator-inputs,
.roi-results {
  position: relative;
  z-index: 1;
}

.calculator-inputs {
  gap: 1rem;
  margin-bottom: 0;
}

.input-group label {
  color: var(--mk-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-group input {
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border-color: rgba(23, 48, 66, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.roi-results {
  gap: 0.9rem;
  margin-top: 0;
}

.roi-metric {
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(23, 48, 66, 0.08);
  background:
    radial-gradient(circle at top left, rgba(11, 143, 134, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.84));
  border-radius: 20px;
  box-shadow: none;
  text-align: left;
}

.roi-metric::before {
  content: none;
}

.roi-metric:hover {
  box-shadow: none;
  transform: none;
}

.roi-value {
  margin-bottom: 0.35rem;
  color: var(--mk-brand);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  letter-spacing: -0.04em;
}

.roi-label {
  color: var(--mk-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.roi-subtext {
  display: block;
  margin-top: 0.35rem;
  color: var(--mk-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.roi-metric:nth-child(2) {
  background:
    radial-gradient(circle at top left, rgba(45, 157, 101, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.84));
}

.roi-metric:nth-child(3) {
  background:
    radial-gradient(circle at top left, rgba(23, 48, 66, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.84));
}

.roi-metric:nth-child(4) {
  background:
    radial-gradient(circle at top left, rgba(242, 163, 58, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.84));
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.4rem;
  color: var(--mk-ink);
  font-size: 1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--mk-brand-strong);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.4rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(23, 48, 66, 0.98), rgba(11, 143, 134, 0.9));
  color: rgba(255, 255, 255, 0.84);
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 25%),
    radial-gradient(circle at 80% 35%, rgba(242, 163, 58, 0.16), transparent 24%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2,
.cta-panel p {
  color: inherit;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.cta-panel .btn-primary {
  background: #fffdf8;
  color: var(--mk-ink);
}

.cta-panel .btn-primary:hover {
  background: #ffffff;
}

.cta-panel .btn-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  margin-top: 76px;
  padding: 6.4rem 0 3.8rem;
  background:
    radial-gradient(circle at top left, rgba(11, 143, 134, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.92), rgba(243, 238, 228, 0.92));
  color: var(--mk-ink);
}

.hero::before,
.hero::after {
  display: none;
}

.hero h1,
.hero p {
  color: var(--mk-ink) !important;
  text-shadow: none !important;
}

.hero .text-center {
  max-width: 56rem;
  margin: 0 auto;
}

.hero .text-large {
  font-size: 1.08rem;
  line-height: 1.75;
}

.phase-nav {
  flex-wrap: wrap;
}

.phase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(23, 48, 66, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--mk-ink-soft);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.phase-btn.active,
.phase-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 143, 134, 0.36);
  background: var(--mk-brand-soft);
  color: var(--mk-ink);
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: var(--mk-ink);
  color: #fffdf8;
  font-size: 0.82rem;
  font-weight: 700;
}

.phase-content {
  display: none;
}

.phase-content.active {
  display: block;
  padding: 2rem;
}

.process-steps,
.feature-benefits,
.feature-specs,
.integration-benefits,
.contact-info-grid {
  display: grid;
  gap: 1rem;
}

.process-step,
.status-item,
.benefit-item,
.spec-item,
.benefit-point,
.contact-info-card,
.process-item,
.method-item,
.support-tier,
.capability-card,
.error-type {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 48, 66, 0.08);
}

.step-icon,
.spec-icon,
.benefit-icon,
.option-icon,
.info-icon,
.component-icon,
.capability-icon,
.error-icon,
.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-strong);
  border: 1px solid rgba(11, 143, 134, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  height: 2.2rem;
  padding: 0 0.85rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(23, 48, 66, 0.06);
  color: var(--mk-ink);
  border: 1px solid rgba(23, 48, 66, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-visual,
.feature-visual,
.integration-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eink-display-demo,
.eink-system-demo,
.led-guidance-demo,
.system-diagram,
.data-flow-diagram,
.workflow-demo-container,
.implementation-timeline {
  width: 100%;
}

.eink-display-demo,
.display-unit,
.led-guidance-demo,
.system-diagram,
.data-flow-diagram {
  padding: 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(23, 48, 66, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 240, 233, 0.72));
}

.display-content,
.display-screen {
  padding: 1rem;
  border-radius: 18px;
  background: #eef1eb;
  border: 1px solid rgba(23, 48, 66, 0.08);
}

.display-header {
  margin-bottom: 0.8rem;
  color: var(--mk-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.features-showcase {
  display: grid;
  gap: 1.5rem;
}

.feature-showcase,
.integration-highlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  padding: 2rem;
}

.feature-showcase.reverse .feature-visual {
  order: 2;
}

.feature-content h3,
.integration-content h2 {
  margin-bottom: 0.8rem;
}

.basket-array,
.feature-specs,
.feature-benefits {
  display: grid;
  gap: 0.9rem;
}

.demo-basket {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(23, 48, 66, 0.06);
}

.setup-timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.4rem;
  padding: 1.5rem;
}

.step-marker {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.step-duration {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-details {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.step-details li + li {
  margin-top: 0.45rem;
}

.system-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.system-box {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 48, 66, 0.08);
  text-align: center;
}

.system-icon {
  margin-bottom: 0.7rem;
  font-size: 2rem;
}

.connection-line {
  position: relative;
  height: 2px;
  background: rgba(23, 48, 66, 0.14);
}

.data-flow {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-strong);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-option {
  padding: 1.8rem;
}

.contact-option.primary {
  background: linear-gradient(180deg, rgba(11, 143, 134, 0.08), rgba(255, 253, 248, 0.9));
}

.contact-option h3 {
  margin: 0.9rem 0 0.75rem;
}

.option-features {
  margin: 1rem 0 1.4rem;
  padding-left: 1.1rem;
}

.option-features li + li {
  margin-top: 0.4rem;
}

.contact-option .btn {
  margin-top: auto;
}

.contact-option,
.contact-info-card,
.capability-card {
  height: 100%;
}

.contact-info-card,
.capability-card,
.benefit-item,
.benefit-point,
.method-item,
.spec-item,
.process-step,
.error-type {
  align-items: start;
}

.capability-card,
.contact-option,
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.capability-features,
.option-features {
  color: var(--mk-ink-soft);
}

.section .text-center h2,
.section .text-center p.text-large {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-item h4,
.process-step h4,
.status-item h4,
.benefit-item h4,
.spec-item h4,
.benefit-point h4 {
  margin-bottom: 0.3rem;
}

footer {
  margin-top: 5rem;
  background: linear-gradient(180deg, #143040, #0e2230);
}

.footer-content {
  gap: 1.5rem;
}

.footer-section p,
.footer-section a,
.footer-bottom p {
  color: rgba(237, 245, 244, 0.7);
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-logo-image {
  filter: none;
  opacity: 1;
}

.nav-links.mobile-open {
  display: flex;
}

@media (max-width: 1080px) {
  .hero-grid,
  .feature-showcase,
  .integration-highlight,
  .surface-grid.cols-3,
  .workflow-stepper,
  .contact-options-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .surface-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-stepper::before {
    display: none;
  }

  .stepper-item {
    padding-top: 3rem;
  }

  .timeline-step,
  .system-diagram,
  .calculator-frame {
    grid-template-columns: 1fr;
  }

  .feature-showcase.reverse .feature-visual {
    order: initial;
  }
}

@media (max-width: 768px) {
  .marketing-home {
    padding-top: 4.8rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0 0.25rem;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .phase-content.active {
    padding: 1.5rem;
  }

  .headline {
    font-size: 2.15rem;
    line-height: 0.98;
  }

  .section-heading {
    max-width: 12ch;
    font-size: 1.7rem;
    line-height: 1.12;
  }

  .section-intro p,
  .section-copy {
    max-width: none;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .signal-row span {
    justify-self: start;
  }

  .hero {
    padding: 5rem 0 2.9rem;
  }

  .hero-meta,
  .calculator-inputs,
  .roi-results,
  .surface-grid.cols-2,
  .surface-grid.cols-3,
  .basket-grid,
  .contact-options-grid {
    grid-template-columns: 1fr;
  }

  .hero-console,
  .roi-calculator,
  .cta-panel {
    padding: 1.25rem;
  }

  .calculator-assumptions,
  .calculator-panel,
  .roi-metric {
    padding: 1.15rem;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td,
  .comparison-table th {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr + tr {
    border-top: 1px solid rgba(23, 48, 66, 0.08);
  }

  .comparison-table td {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 0;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    color: var(--mk-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ── Utility classes (replacing inline styles) ────────────── */

/* Footer */
.footer-logo-title { margin-top: 0.5rem; }
.footer-description { color: #B0BEC5; }

/* Subpage hero overrides */
.hero-subpage { padding: 6rem 0 4rem 0; }
.hero-subtitle { max-width: 700px; margin: 1rem auto; }

/* Section intro spacing variants */
.section-intro-spaced { margin-bottom: 4rem; }
.section-intro-compact { margin-bottom: 3rem; }
.section-intro-tight { margin-bottom: 2.25rem; }

/* CTA banner sections */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3DB5B0 100%);
  color: white;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner .text-large { color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.cta-actions-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { background-color: white; color: var(--primary-color); font-weight: 600; }
.btn-cta-ghost { background-color: transparent; color: white; border: 2px solid white; }

/* how-it-works page */
.phase-nav { display: flex; justify-content: center; margin-bottom: 3rem; gap: 1rem; }
.phase-description { margin-bottom: 1.5rem; }
.smart-basket.inactive { opacity: 0.3; }
.basket-led.inactive { background-color: #ddd; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* 404 page */
.error-footer-note {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #E0E6ED;
  color: #95A5A6;
  font-size: 0.9rem;
}
.error-page-footer { margin-top: 50px; }
