/* ==========================================================================
   Sanitica – Microsoft 365 + Sanitica Landing Page
   ========================================================================== */

/* -- Hero flow diagram ---------------------------------------------------- */

.m365-hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.m365-hf-node {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.m365-hf-ms {
  background: rgba(0, 120, 212, 0.12);
  border: 1px solid rgba(0, 120, 212, 0.3);
  color: #60a5fa;
}

.m365-hf-sanitica {
  background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.35);
  color: var(--teal);
  box-shadow: 0 0 40px rgba(0, 240, 212, 0.08);
}

.m365-hf-safe {
  background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.2);
  color: var(--teal);
}

.m365-hf-arrow {
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
}

/* -- Scenario Toggle ------------------------------------------------------ */

.m365-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 40px;
}

.m365-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 4px;
  position: relative;
}

.m365-toggle-slider {
  position: absolute;
  height: calc(100% - 8px);
  border-radius: 100px;
  top: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.m365-toggle-slider.pos-without {
  background: var(--red);
  box-shadow: 0 0 20px rgba(232, 54, 79, 0.25);
}

.m365-toggle-slider.pos-with {
  background: var(--teal);
  box-shadow: 0 0 20px rgba(0, 240, 212, 0.25);
}

.m365-toggle-btn {
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s;
  position: relative;
  z-index: 2;
}

.m365-toggle-btn.active {
  color: var(--bg-deep);
}

.m365-toggle-btn.active.without {
  color: #fff;
}

/* -- Scenario Flow Steps -------------------------------------------------- */

.m365-scenario-container {
  position: relative;
  min-height: 380px;
}

.m365-flow {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.m365-flow.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}

.m365-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 740px;
  margin: 0 auto;
}

.m365-fs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.m365-fs:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.m365-fs-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.m365-fs-icon--ms { background: rgba(0, 120, 212, 0.12); }
.m365-fs-icon--danger { background: rgba(232, 54, 79, 0.1); }
.m365-fs-icon--safe { background: var(--teal-faint); }
.m365-fs-icon--sanitica {
  background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.3);
}

.m365-fs-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.m365-fs-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.m365-fs-line {
  width: 2px;
  height: 12px;
  margin-left: 52px;
}

.m365-fs-line--ms { background: rgba(0, 120, 212, 0.15); }
.m365-fs-line--danger { background: rgba(232, 54, 79, 0.15); }
.m365-fs-line--safe { background: rgba(0, 240, 212, 0.15); }

.m365-fs-result {
  text-align: center;
  padding: 24px 28px;
  border-radius: 14px;
  margin-top: 20px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}

.m365-fs-result--bad {
  background: rgba(232, 54, 79, 0.08);
  border: 1px solid rgba(232, 54, 79, 0.25);
  color: var(--red);
}

.m365-fs-result--good {
  background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.25);
  color: var(--teal);
}

/* -- Objections / "But can't I just..." ----------------------------------- */

.m365-objections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.m365-objection {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.m365-objection:hover {
  border-color: var(--border-light);
}

.m365-objection-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--mode-meta);
  flex-shrink: 0;
}

.m365-objection-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.m365-objection-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.m365-objection-summary {
  padding: 24px 28px;
  background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.12);
  border-radius: 14px;
  text-align: center;
}

.m365-objection-summary p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}

/* -- Comparison table ----------------------------------------------------- */

.m365-compare {
  margin: 32px 0 0;
  overflow-x: auto;
}

.m365-compare table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.m365-compare thead th {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.m365-compare thead th:first-child {
  width: 35%;
}

.m365-compare thead th:nth-child(2) {
  color: #60a5fa;
  background: rgba(0, 120, 212, 0.08);
}

.m365-compare thead th:nth-child(3) {
  color: var(--teal);
  background: rgba(0, 240, 212, 0.04);
}

.m365-compare tbody td {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  vertical-align: middle;
}

.m365-compare tbody tr:last-child td {
  border-bottom: none;
}

.m365-compare tbody td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.m365-compare tbody tr:hover {
  background: rgba(0, 240, 212, 0.02);
}

.m365-check {
  font-weight: 600;
}

.m365-check--blue {
  color: #60a5fa;
}

.m365-check--teal {
  color: var(--teal);
}

.m365-no {
  color: var(--red);
  font-weight: 500;
}

.m365-partial {
  color: #EAB308;
  font-weight: 500;
}

/* -- Integration steps ---------------------------------------------------- */

.m365-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.m365-step-card {
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.m365-step-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.m365-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.m365-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.m365-step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* -- Beyond Microsoft grid ------------------------------------------------ */

.m365-beyond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.m365-beyond-card {
  padding: 28px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}

.m365-beyond-card:hover {
  border-color: var(--teal);
  background: var(--bg-elevated);
  transform: translateY(-4px);
}

.m365-beyond-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.m365-beyond-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.m365-beyond-status {
  font-size: 12px;
  color: var(--teal);
  font-family: var(--font-mono);
}

/* -- Together section ----------------------------------------------------- */

.m365-together-visual {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 32px;
}

.m365-together-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s ease;
}

.m365-together-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.m365-together-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.m365-together-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.m365-together-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.m365-together-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
}

/* -- Quote ---------------------------------------------------------------- */

.m365-quote {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}

.m365-quote-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  line-height: 1.45;
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--text-primary);
}

.m365-quote-attr {
  font-size: 14px;
  color: var(--text-muted);
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .m365-hero-flow {
    gap: 6px;
  }

  .m365-hf-node {
    padding: 10px 16px;
    font-size: 12px;
  }

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

  .m365-together-visual {
    flex-direction: column;
    gap: 16px;
  }

  .m365-together-plus {
    padding: 8px 0;
    font-size: 22px;
  }

  .m365-compare thead th:first-child {
    width: auto;
  }

  .m365-beyond-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .m365-objection {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .m365-objection-summary {
    padding: 20px;
  }

  .m365-fs {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .m365-fs-line {
    margin-left: auto;
    margin-right: auto;
  }

  .m365-toggle-btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .m365-scenario-container {
    min-height: auto;
  }

  .m365-compare thead th,
  .m365-compare tbody td {
    padding: 12px 14px;
    font-size: 12px;
  }

  .m365-together-summary {
    padding: 20px 24px;
  }

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

  .m365-hero-flow {
    gap: 4px;
  }

  .m365-hf-node {
    padding: 8px 12px;
    font-size: 11px;
  }

  .m365-hf-arrow {
    font-size: 16px;
  }
}
