/* ═══════════════════════════════════════════════════
   MSCD Generator — Wizard Styles v1.0
   Prefixed with .mscd- to avoid Divi conflicts
   ═══════════════════════════════════════════════════ */

/* Global: prevent horizontal scrollbar on all pages */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.mscd-wizard {
  --mscd-field-x-padding: 0.75rem;
  --mscd-select-arrow-size: 0.85rem;
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #1a202c;
  position: relative;
}

.mscd-guide-link-box,
.mscd-questionnaire-guide-panel {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #bbf7d0 !important;
  border-left: 1px solid #bbf7d0 !important;
  border-radius: 8px;
  background: #f0fdf4;
  background-image: none !important;
  box-shadow: none !important;
  color: #1a202c;
}
.mscd-guide-link-box::before,
.mscd-questionnaire-guide-panel::before {
  content: none !important;
  display: none !important;
}
.mscd-guide-link-box p,
.mscd-questionnaire-guide-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #718096;
}
.mscd-guide-link-box a,
.mscd-questionnaire-guide-panel a {
  color: #047857;
  font-weight: 600;
  text-decoration: none;
}
.mscd-guide-link-box a:hover,
.mscd-questionnaire-guide-panel a:hover {
  text-decoration: underline;
}

.mscd-consultant-branding-panel {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1a202c;
}
.mscd-consultant-branding-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.mscd-consultant-branding-head h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2d3748;
}
.mscd-consultant-branding-head p,
.mscd-consultant-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #718096;
}
.mscd-consultant-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
}
.mscd-consultant-toggle input {
  accent-color: #11b47d;
}
.mscd-consultant-branding-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.mscd-logo-remove {
  margin-top: 0.4rem;
}
.mscd-consultant-logo-info {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.mscd-consultant-logo-success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #276749;
}
.mscd-consultant-logo-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #9b2c2c;
}

/* ── Progress Bar ── */
.mscd-progress {
  background: #e2e8f0;
  border-radius: 8px;
  height: 6px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.mscd-progress-bar {
  background: linear-gradient(90deg, #11b47d, #11b47d);
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}
.mscd-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #718096;
}
.mscd-progress-steps span {
  cursor: pointer;
  transition: color 0.2s;
}
.mscd-progress-steps span.active {
  color: #111827;
  font-weight: 600;
}
.mscd-progress-steps span.completed {
  color: #11b47d;
}

/* ── Sections ── */
.mscd-section {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}
.mscd-section.active {
  display: block;
  animation: mscdFadeIn 0.3s ease;
}
@keyframes mscdFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mscd-wizard .mscd-section-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin-bottom: 0.25rem;
  padding: 0;
  text-align: left !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}
.mscd-section-desc {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── Fields ── */
.mscd-field {
  margin-bottom: 1.25rem;
}
.mscd-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d3748;
  margin-bottom: 0.35rem;
}
.mscd-req {
  color: #c53030;
}

.mscd-field input[type="text"],
.mscd-field input[type="email"],
.mscd-field input[type="url"],
.mscd-field select,
.mscd-field textarea {
  width: 100%;
  padding: 0.6rem var(--mscd-field-x-padding);
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: 0.9rem;
  color: #1a202c;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
#mscd-wizard.mscd-wizard .mscd-field select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: calc(var(--mscd-field-x-padding) + var(--mscd-select-arrow-size) + 0.75rem) !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231a202c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right var(--mscd-field-x-padding) center !important;
  background-size: var(--mscd-select-arrow-size) !important;
}
#mscd-wizard.mscd-wizard .mscd-field select::-ms-expand {
  display: none;
}
.mscd-field input:focus,
.mscd-field select:focus,
.mscd-field textarea:focus {
  outline: none;
  border-color: #11b47d;
  box-shadow: 0 0 0 3px rgba(17, 180, 125, 0.15);
}
.mscd-field input.mscd-error,
.mscd-field select.mscd-error {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}
.mscd-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* ── Layout ── */
.mscd-row {
  display: flex;
  gap: 1rem;
}
.mscd-half {
  flex: 1;
}
@media (max-width: 600px) {
  .mscd-row {
    flex-direction: column;
    gap: 0;
  }
  .mscd-consultant-branding-head {
    flex-direction: column;
  }
}

/* ── Checkbox Grid ── */
.mscd-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
}
.mscd-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400 !important;
  font-size: 0.85rem;
  color: #4a5568;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}
.mscd-check:hover {
  background: #edfbf5;
}
.mscd-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #11b47d;
  cursor: pointer;
}

/* ── Navigation ── */
.mscd-nav {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.mscd-nav-spacer {
  flex: 1;
}
.mscd-btn {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none !important;
}
.mscd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mscd-btn-next,
.mscd-btn-generate {
  background: #fff !important;
  color: #11b47d !important;
  border: 1.5px solid #11b47d !important;
}
.mscd-btn-next:hover,
.mscd-btn-generate:hover {
  background: #11b47d !important;
  color: #f3f4f6 !important;
  border-color: #11b47d !important;
}
.mscd-btn-back {
  background: #fff !important;
  color: #11b47d !important;
  border: 1.5px solid #11b47d !important;
}
.mscd-btn-back:hover {
  background: #11b47d !important;
  color: #f3f4f6 !important;
  border-color: #11b47d !important;
}

/* ── Results Panel ── */
.mscd-results {
  animation: mscdFadeIn 0.4s ease;
}
.mscd-results-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mscd-results-header h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 0.25rem;
}
.mscd-results-header p {
  color: #718096;
  font-size: 0.95rem;
}

.mscd-results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .mscd-results-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mscd-stat {
  text-align: center;
  padding: 1rem;
  background: #edfbf5;
  border-radius: 8px;
}
.mscd-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.mscd-stat-label {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 0.2rem;
}

/* Risk badges */
.mscd-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}
.mscd-badge-RED { background: #fff5f5; color: #c53030; border: 2px solid #c53030; }
.mscd-badge-AMBER { background: #fffaf0; color: #c05621; border: 2px solid #c05621; }
.mscd-badge-GREEN { background: #f0fff4; color: #276749; border: 2px solid #276749; }

/* Document cards */
.mscd-results-docs {
  margin-bottom: 2rem;
}
.mscd-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mscd-doc-card:hover {
  border-color: #11b47d;
  box-shadow: 0 2px 8px rgba(17, 180, 125, 0.1);
}
.mscd-doc-card.mscd-locked {
  opacity: 0.55;
}
.mscd-doc-info {
  flex: 1;
}
.mscd-doc-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}
.mscd-doc-desc {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 0.15rem;
}
.mscd-doc-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  color: #11b47d;
  border: 1.5px solid #11b47d;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.mscd-doc-btn:hover {
  background: #11b47d;
  color: #f3f4f6;
  border-color: #11b47d;
}
.mscd-doc-btn.mscd-locked-btn {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
}
.mscd-doc-btn.mscd-locked-btn:hover {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #d1d5db;
}

.mscd-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mscd-branding {
  text-align: center;
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 1rem;
}

/* ── Loading Overlay ── */
.mscd-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 8px;
}
.mscd-loading-content {
  text-align: center;
}
.mscd-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #11b47d;
  border-radius: 50%;
  animation: mscdSpin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes mscdSpin {
  to { transform: rotate(360deg); }
}
.mscd-loading-content p {
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════ */
/* V0.4: REGULATORY COVERAGE OVERVIEW                */
/* ══════════════════════════════════════════════════ */

.mscd-regulatory-overview {
  background: #f0f5ff;
  border: 1px solid #c3dafe;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.mscd-regulatory-overview h3 {
  font-size: 1.1rem;
  color: #2b6cb0;
  margin: 0 0 0.5rem 0;
}
.mscd-regulatory-desc {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
}
.mscd-framework-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mscd-fw-badge {
  display: inline-block;
  background: #edfbf5;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
}
.mscd-fw-badge:hover {
  background: #bee3f8;
}


/* ══════════════════════════════════════════════════ */
/* V0.4: SBOM ANALYSIS SUMMARY                      */
/* ══════════════════════════════════════════════════ */

.mscd-sbom-summary {
  background: #fffff0;
  border: 1px solid #fefcbf;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.mscd-sbom-summary h3 {
  font-size: 1.1rem;
  color: #975a16;
  margin: 0 0 0.5rem 0;
}
.mscd-sbom-details p {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

/* Language composition bar */
.mscd-lang-bar {
  display: flex;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid #e2e8f0;
}
.mscd-lang-segment {
  min-width: 4px;
  transition: opacity 0.2s;
  cursor: default;
}
.mscd-lang-segment:hover {
  opacity: 0.8;
}

/* SBOM upload result states */
.mscd-sbom-result {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 11px;
  font-size: 0.85rem;
}
.mscd-sbom-loading {
  background: #ebf8ff;
  color: #2b6cb0;
}
.mscd-sbom-success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
}
.mscd-sbom-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}


/* ══════════════════════════════════════════════════ */
/* V0.4: PROGRESS COMPARISON                         */
/* ══════════════════════════════════════════════════ */

.mscd-progress-comparison {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.mscd-progress-comparison h3 {
  font-size: 1.1rem;
  color: #276749;
  margin: 0 0 0.75rem 0;
}

.mscd-progress-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.mscd-progress-improved {
  background: #c6f6d5;
  color: #22543d;
}
.mscd-progress-regressed {
  background: #fed7d7;
  color: #c53030;
}
.mscd-progress-stable {
  background: #fefcbf;
  color: #975a16;
}

.mscd-progress-changes {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}
.mscd-progress-changes li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
  color: #4a5568;
}
.mscd-progress-changes li:last-child {
  border-bottom: none;
}

/* KPI Table */
.mscd-progress-kpi {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.mscd-progress-kpi th {
  background: #e6fffa;
  color: #234e52;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #b2f5ea;
}
.mscd-progress-kpi td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}
.mscd-kpi-improved {
  color: #22543d;
  font-weight: 600;
}
.mscd-kpi-regressed {
  color: #c53030;
  font-weight: 600;
}
.mscd-kpi-stable {
  color: #718096;
}


/* ══════════════════════════════════════════════════ */
/* V0.4: BASELINE PANEL & ACTIONS                    */
/* ══════════════════════════════════════════════════ */

.mscd-baseline-panel {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.mscd-baseline-panel .mscd-baseline-hint {
  color: #6b46c1;
  font-size: 0.88rem;
  margin: 0;
}
.mscd-btn-link {
  background: none;
  border: none;
  color: #6b46c1;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}
.mscd-btn-link:hover {
  color: #553c9a;
}

.mscd-baseline-info {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 11px;
  font-size: 0.85rem;
}
.mscd-baseline-success {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
}
.mscd-baseline-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}

.mscd-baseline-actions {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.mscd-baseline-actions .mscd-baseline-hint {
  color: #718096;
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}
.mscd-btn-secondary {
  background: #faf5ff;
  color: #6b46c1;
  border: 1.5px solid #d6bcfa;
  padding: 0.6rem 1.2rem;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}
.mscd-btn-secondary:hover {
  background: #e9d8fd;
  border-color: #b794f4;
}


/* ══════════════════════════════════════════════════ */
/* RESPONSIVE IMPROVEMENTS                            */
/* ══════════════════════════════════════════════════ */

.mscd-attestation-verify {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #1a202c;
}
.mscd-attestation-verify h3,
.mscd-attestation-verify h4 {
  margin: 0 0 0.5rem;
  color: #1a365d;
}
.mscd-attestation-verify p {
  margin: 0 0 0.75rem;
}
.mscd-attestation-meta {
  font-size: 0.85rem;
  color: #4b5563;
}
.mscd-attestation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.86rem;
}
.mscd-attestation-table th,
.mscd-attestation-table td {
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.mscd-attestation-table th {
  background: #eef2f7;
  color: #1a365d;
  font-weight: 700;
}
.mscd-attestation-changed td {
  background: #fff7ed;
}

@media (max-width: 768px) {
  .mscd-results-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .mscd-framework-badges {
    gap: 0.3rem;
  }
  .mscd-fw-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
  }
  .mscd-progress-kpi {
    font-size: 0.78rem;
  }
  .mscd-progress-kpi th,
  .mscd-progress-kpi td {
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .mscd-results-stats {
    grid-template-columns: 1fr;
  }
  .mscd-doc-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mscd-doc-btn {
    margin-top: 0.5rem;
  }
  .mscd-baseline-panel {
    padding: 0.5rem 0.75rem;
  }
  .mscd-regulatory-overview,
  .mscd-sbom-summary,
  .mscd-progress-comparison {
    padding: 1rem;
  }
  .mscd-progress-kpi {
    font-size: 0.72rem;
  }
  .mscd-progress-steps span {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }
}

/* ── Upgrade CTAs ── */
.mscd-upgrade-banner {
  background: linear-gradient(135deg, #edfbf5 0%, #f0fdf4 100%);
  border: 1.5px solid #11b47d;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: mscdFadeIn 0.4s ease;
}
.mscd-upgrade-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.mscd-upgrade-text {
  flex: 1;
}
.mscd-upgrade-text strong {
  font-size: 1rem;
  color: #111827;
  display: block;
  margin-bottom: 0.2rem;
}
.mscd-upgrade-text p {
  font-size: 0.85rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.4;
}
.mscd-btn-upgrade {
  padding: 0.65rem 1.5rem;
  border: 1.5px solid #11b47d !important;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  background: #fff !important;
  color: #11b47d !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}
.mscd-btn-upgrade:hover {
  background: #11b47d !important;
  color: #f3f4f6 !important;
  border-color: #11b47d !important;
  transform: translateY(-1px);
}

.mscd-upgrade-footer {
  text-align: center;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.mscd-upgrade-footer p {
  font-size: 0.88rem;
  color: #4a5568;
  margin: 0;
}
.mscd-upgrade-footer a {
  color: #11b47d;
  font-weight: 600;
  text-decoration: none;
}
.mscd-upgrade-footer a:hover {
  color: #0e9e6b;
  text-decoration: underline;
}

/* ── Locked document cards (clickable upgrade) ── */
.mscd-doc-card.mscd-locked {
  opacity: 1;
  background: #f7fafc;
  border-color: #e2e8f0;
  border-style: dashed;
  transition: border-color 0.15s, background 0.15s;
}
.mscd-doc-card.mscd-locked:hover {
  border-color: #11b47d;
  background: #edfbf5;
}
.mscd-doc-card.mscd-locked .mscd-doc-title {
  color: #718096;
}
.mscd-doc-card.mscd-locked .mscd-doc-desc {
  color: #a0aec0;
}
a.mscd-locked-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  color: #11b47d;
  border: 1.5px solid #11b47d;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
a.mscd-locked-btn:hover {
  background: #11b47d;
  color: #f3f4f6;
  border-color: #11b47d;
  text-decoration: none;
}

@media (max-width: 600px) {
  .mscd-upgrade-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .mscd-btn-upgrade {
    width: 100%;
  }
}

/* ── Email Capture Modal ── */
.mscd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 44, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: mscdFadeIn 0.2s ease;
}
.mscd-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.mscd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}
.mscd-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.mscd-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.mscd-modal-close:hover {
  color: #4a5568;
}
.mscd-modal-body {
  padding: 0 1.5rem 1rem;
}
.mscd-modal-body p {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.mscd-gate-consent {
  margin-top: 0.75rem;
}
.mscd-gate-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #718096;
  font-weight: 400 !important;
  line-height: 1.4;
  cursor: pointer;
}
.mscd-gate-consent a {
  color: #11b47d;
  font-weight: 600;
  text-decoration: none;
}
.mscd-gate-consent a:hover,
.mscd-gate-consent a:focus {
  text-decoration: underline;
}
.mscd-gate-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #11b47d;
  flex-shrink: 0;
}
.mscd-gate-error {
  color: #c53030;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff5f5;
  border-radius: 4px;
}
.mscd-modal-footer {
  padding: 0 1.5rem 1.25rem;
}
.mscd-modal-footer .mscd-btn {
  width: 100%;
}

/* ── Login / Auth Pages ── */
.mscd-auth {
  max-width: 440px;
  margin: 2rem auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #1a202c;
}
.mscd-auth-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
}
.mscd-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.mscd-auth-subtitle {
  color: #718096;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.mscd-auth-form .mscd-field {
  margin-bottom: 1rem;
}
.mscd-auth-form .mscd-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d3748;
  margin-bottom: 0.35rem;
}
.mscd-auth-form .mscd-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: 0.9rem;
  color: #1a202c;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.mscd-auth-form .mscd-field input:focus {
  outline: none;
  border-color: #11b47d;
  box-shadow: 0 0 0 3px rgba(17, 180, 125, 0.15);
}
.mscd-auth-remember {
  margin-bottom: 1.25rem;
}
.mscd-auth-remember label {
  font-size: 0.85rem;
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400 !important;
}
.mscd-auth-btn {
  width: 100%;
  margin-bottom: 1rem;
}
.mscd-auth-back {
  display: inline-block;
  font-size: 0.85rem;
  color: #11b47d !important;
  text-decoration: none !important;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.mscd-auth-back:hover {
  color: #0e9e6b !important;
}
.mscd-auth-links {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 1rem;
}
.mscd-auth-links a {
  color: #11b47d;
  text-decoration: none;
  font-weight: 500;
}
.mscd-auth-links a:hover {
  color: #0e9e6b;
  text-decoration: underline;
}
.mscd-auth-sep {
  margin: 0 0.5rem;
  color: #e2e8f0;
}
.mscd-auth-error {
  background: #fff5f5;
  color: #c53030;
  padding: 0.75rem 1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid #fed7d7;
}
.mscd-auth-success {
  background: #f0fff4;
  color: #276749;
  padding: 0.75rem 1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid #c6f6d5;
}

/* ── Account Page ── */
.mscd-account-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.mscd-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mscd-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}
.mscd-account-info {
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.mscd-account-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.mscd-account-row:last-child {
  border-bottom: none;
}
.mscd-account-row:nth-child(even) {
  background: #f7fafc;
}
.mscd-account-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #4a5568;
  width: 140px;
  flex-shrink: 0;
}
.mscd-account-value {
  font-size: 0.9rem;
  color: #1a202c;
}
.mscd-tier-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mscd-tier-free { background: #e2e8f0; color: #4a5568; }
.mscd-tier-pro { background: #edfbf5; color: #0e9e6b; border: 1px solid #11b47d; }
.mscd-tier-enterprise { background: #111827; color: #fff; }
.mscd-account-actions {
  margin-bottom: 1.5rem;
}
.mscd-account-actions h2 {
  font-size: 1.1rem;
  color: #111827;
  margin: 0 0 0.75rem;
}
.mscd-account-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mscd-account-features {
  margin-bottom: 1rem;
}
.mscd-account-features h2 {
  font-size: 1.1rem;
  color: #111827;
  margin: 0 0 0.75rem;
}
.mscd-account-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mscd-account-feature-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #2d3748;
}
.mscd-account-feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #276749;
  font-weight: 700;
}
.mscd-account-upgrade {
  text-align: center;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 1rem;
}
.mscd-account-upgrade h2 {
  font-size: 1.1rem;
  color: #111827;
  margin: 0 0 0.5rem;
}
.mscd-account-upgrade p {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0 0 1rem;
}

@media (max-width: 600px) {
  .mscd-auth {
    margin: 1rem auto;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .mscd-auth-card,
  .mscd-account-card {
    padding: 1.25rem;
  }
  .mscd-account-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .mscd-account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .mscd-account-label {
    width: auto;
  }
  .mscd-account-buttons {
    flex-direction: column;
  }
  .mscd-account-buttons .mscd-btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════
   LANDING PAGE — MemorySafetyRoadmap.com
   Colour: white + near-black + teal accent (#11b47d)
   Corners: 11px radius throughout
   ═══════════════════════════════════════════════════ */

/* ── Shared ── */
.mscd-section-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
}
.mscd-section-sub {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.5;
}

/* ── Hero ── */
.mscd-hero {
  background: #ffffff;
  color: #111827;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.mscd-hero-road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.mscd-hero-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mscd-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #11b47d;
  border: 1.5px solid rgba(17, 180, 125, 0.3);
  background: rgba(17, 180, 125, 0.06);
  border-radius: 20px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
/* Badge separator — visible on desktop, hidden on portrait mobile */
.mscd-badge-sep {
  display: inline;
}
/* Green underline on the key phrase in the hero headline */
.mscd-headline-underline {
  text-decoration: underline;
  text-decoration-color: #11b47d;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.mscd-hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  line-height: 1.08 !important;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}
.mscd-hero-sub {
  font-size: 1.15rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 auto 2.75rem;
  max-width: 580px;
}
.mscd-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.mscd-hero-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: #fff;
  color: #11b47d !important;
  border: 1.5px solid #11b47d;
  border-radius: 11px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mscd-hero-btn:hover {
  background: #11b47d;
  color: #f3f4f6 !important;
  border-color: #11b47d;
  transform: translateY(-1px);
  text-decoration: none;
}
.mscd-hero-link {
  color: #6b7280 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.mscd-hero-link:hover {
  color: #11b47d !important;
}
.mscd-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.mscd-trust-label {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-right: 0.25rem;
}
.mscd-trust-items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mscd-trust-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #11b47d;
  background: #fff;
  border: 1.5px solid #11b47d;
  border-radius: 11px;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.mscd-trust-pill:hover {
  background: #11b47d;
  color: #f3f4f6;
}

/* ── How It Works ── */
.mscd-hiw {
  background: transparent;
  padding: 4rem 2.5rem;
  width: 89%;
  margin: 3rem auto;
  border: 2px solid #11b47d;
  border-radius: 11px 28px 11px 28px;
  box-sizing: border-box;
}
.mscd-hiw-inner {
  max-width: 900px;
  margin: 0 auto;
}
.mscd-hiw-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
}
.mscd-hiw-sub {
  font-size: 1.1rem;
  color: #6b7280;
  text-align: center;
  margin: 0 0 3rem;
}
.mscd-hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.mscd-hiw-step { text-align: left; }
.mscd-hiw-num {
  font-size: 3rem;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.mscd-hiw-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}
.mscd-hiw-step-desc {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ── Pricing ── */
.mscd-pricing-section {
  padding: 5rem 1.5rem;
  background: #fff;
}
.mscd-pricing-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.mscd-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.mscd-bt-label {
  font-size: 0.92rem;
  color: #9ca3af;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.mscd-bt-label.mscd-bt-active {
  color: #111827;
  font-weight: 600;
}
.mscd-bt-badge {
  display: inline-block;
  background: #edfbf5;
  color: #11b47d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.mscd-bt-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.mscd-bt-switch[aria-checked="true"] {
  background: #11b47d;
  border-color: #11b47d;
}
.mscd-bt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.mscd-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.mscd-tier-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mscd-tier-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.mscd-tier-featured {
  border-color: #11b47d;
}
.mscd-tier-featured:hover {
  border-color: #0e9e6b;
  box-shadow: 0 4px 20px rgba(17, 180, 125, 0.1);
}
.mscd-tier-flag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #11b47d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mscd-tier-featured .mscd-tier-head {
  padding-top: 2rem;
}
.mscd-tier-head {
  padding: 2rem 1.5rem 1.25rem;
  text-align: left;
}
.mscd-tier-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 0.35rem;
}
.mscd-tier-desc {
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
.mscd-tier-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.03em;
}
.mscd-tier-price-old {
  font-size: 1.1rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 0.25rem;
}
.mscd-tier-period {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  min-height: 1.3rem;
  font-weight: 400;
}
.mscd-tier-equiv {
  font-size: 0.78rem;
  color: #9ca3af;
}
.mscd-tier-body {
  padding: 0 1.5rem 1.75rem;
}
.mscd-tier-includes {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.mscd-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.mscd-tier-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.45;
}
.mscd-tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 15px;
  height: 15px;
  background: #11b47d;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L2.5 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L2.5 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mscd-tier-list li strong {
  color: #111827;
  font-weight: 600;
}
.mscd-tier-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.mscd-tier-btn-solid {
  background: #fff;
  color: #11b47d !important;
  border: 1.5px solid #11b47d;
}
.mscd-tier-btn-solid:hover {
  background: #11b47d;
  color: #f3f4f6 !important;
  border-color: #11b47d;
  transform: translateY(-1px);
  text-decoration: none;
}
.mscd-tier-btn-outline {
  background: #fff;
  color: #11b47d !important;
  border: 1.5px solid #11b47d;
}
.mscd-tier-btn-outline:hover {
  background: #11b47d;
  color: #f3f4f6 !important;
  border-color: #11b47d;
  text-decoration: none;
}

/* ── FAQ ── */
.mscd-faq-section {
  background: transparent;
  padding: 4rem 2.5rem;
  width: 89%;
  margin: 3rem auto;
  border: 2px solid #11b47d;
  border-radius: 28px 11px 28px 11px;
  box-sizing: border-box;
}
.mscd-faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.mscd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mscd-faq-item {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}
.mscd-faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}
.mscd-faq-item[open] {
  background: rgba(17, 180, 125, 0.04);
  border-left: 3px solid #11b47d;
  margin-left: -3px;
  padding-left: 3px;
}
.mscd-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1.35rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  list-style: none;
  transition: color 0.2s ease;
}
.mscd-faq-item summary::-webkit-details-marker { display: none; }
.mscd-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: #11b47d;
  border: none;
  border-radius: 0;
  background: none;
  transition: all 0.2s ease;
  margin-left: 1.5rem;
  padding: 0;
}
.mscd-faq-item[open] summary::after {
  content: "\2212";
  color: #11b47d;
  background: none;
  border-color: transparent;
}
.mscd-faq-item summary:hover {
  color: #11b47d;
}
.mscd-faq-item summary:hover::after {
  color: #0e9e6b;
}
.mscd-faq-a {
  padding: 0 0.5rem 1.35rem 0.5rem;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
}
.mscd-faq-a a {
  color: #11b47d;
  text-decoration: none;
  font-weight: 500;
}
.mscd-faq-a a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.mscd-footer {
  background: transparent;
  color: #4b5563;
  padding: 3.5rem 2.5rem 2rem;
  width: 89%;
  margin: 3rem auto 1.5rem;
  border: 2px solid #11b47d;
  border-radius: 11px 28px 11px 28px;
  box-sizing: border-box;
}
.mscd-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.mscd-footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) repeat(4, minmax(110px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.mscd-footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.mscd-footer-tagline {
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  color: #4b5563;
}
.mscd-footer-company {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.mscd-footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}
.mscd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mscd-footer-links li {
  margin-bottom: 0.45rem;
}
.mscd-footer-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.mscd-footer-links a:hover {
  color: #111827;
}
.mscd-footer-bottom {
  border-top: 1px solid rgba(17, 180, 125, 0.3);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.mscd-footer-bottom p {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  flex-shrink: 0;
}
.mscd-footer-privacy {
  flex-shrink: 1;
  text-align: right;
}
.mscd-footer-privacy a {
  color: #11b47d;
  text-decoration: none;
}
.mscd-footer-privacy a:hover {
  color: #0e9e6b;
}

/* ── Header ── */
.mscd-header {
  width: 89%;
  margin: 1.5rem auto;
  box-sizing: border-box;
  background: transparent;
}
.mscd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}
.mscd-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 1;
  min-width: 0;
}
.mscd-header-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.mscd-header-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  white-space: nowrap;
}
.mscd-header-brand:hover .mscd-header-name {
  color: #11b47d !important;
}
.mscd-header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .mscd-header {
    width: 89%;
    margin: 1rem auto;
  }
  .mscd-header-inner {
    padding: 0.6rem 1rem;
  }
  .mscd-header-logo {
    height: 28px;
  }
  .mscd-header-name {
    font-size: 0.9rem;
  }
}

/* ── Portrait (vertical): logo + account button, name hidden ── */
@media (max-width: 768px) and (orientation: portrait) {
  .mscd-header-name {
    display: none;
  }
  .mscd-header-logo {
    display: block;
    height: 28px;
  }

  /* Badge: stack the two phrases vertically, hide the separator */
  .mscd-hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    line-height: 1.5;
    text-align: center;
  }
  .mscd-badge-sep {
    display: none;
  }

  /* Billing toggle: stack vertically and centre-align */
  .mscd-billing-toggle {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  /* Re-arrange so toggle sits between the two labels */
  .mscd-billing-toggle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
  }
  #mscdBtMonthly {
    grid-column: 1;
    text-align: right;
  }
  #mscdBillingToggle {
    grid-column: 2;
  }
  #mscdBtYearly {
    grid-column: 3;
    text-align: left;
  }
}

/* ── Landscape (horizontal): name + account button, logo hidden ── */
@media (max-width: 900px) and (orientation: landscape) {
  .mscd-header-logo {
    display: none;
  }
  .mscd-header-name {
    display: block;
    font-size: 0.95rem;
  }
}

/* ── Very small portrait (phones ≤400px): tighten up ── */
@media (max-width: 400px) and (orientation: portrait) {
  .mscd-header-logo {
    height: 26px;
  }
  .mscd-header-inner {
    padding: 0.5rem 0.75rem;
  }
}

/* ── Menu Button ── */
.mscd-menu-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem !important;
  background: #fff !important;
  color: #11b47d !important;
  border: 1.5px solid #11b47d !important;
  border-radius: 11px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}
.mscd-menu-btn:hover {
  background: #11b47d !important;
  color: #f3f4f6 !important;
  border-color: #11b47d !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ── Legal Hub ── */
.mscd-legal-hub {
  max-width: 780px;
  margin: 2rem auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #1a202c;
  padding: 0 1rem;
}
.mscd-legal-hub-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
}
.mscd-legal-hub-intro {
  font-size: 1.08rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0 0 2.5rem;
}
.mscd-legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.mscd-legal-hub-card {
  display: block;
  padding: 1.5rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.mscd-legal-hub-card:hover {
  border-color: #11b47d;
  box-shadow: 0 4px 16px rgba(17, 180, 125, 0.08);
}
.mscd-legal-hub-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827 !important;
  margin: 0 0 0.4rem;
}
.mscd-legal-hub-card p {
  font-size: 0.88rem;
  color: #6b7280 !important;
  line-height: 1.55;
  margin: 0;
}
.mscd-legal-hub-contact {
  border: 2px solid #11b47d;
  border-radius: 11px 28px 11px 28px;
  padding: 2rem;
  text-align: center;
}
.mscd-legal-hub-contact-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
}
.mscd-legal-hub-contact p {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}
.mscd-legal-hub-contact a {
  color: #11b47d !important;
  text-decoration: none;
  font-weight: 600;
}
.mscd-legal-hub-contact a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .mscd-legal-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Legal Page Header ── */
.mscd-legal-page {
  max-width: 780px;
  margin: 2rem auto 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #1a202c;
  padding: 0 1rem;
}
.mscd-legal-page-back {
  display: inline-block;
  font-size: 0.85rem;
  color: #11b47d !important;
  text-decoration: none !important;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.mscd-legal-page-back:hover {
  color: #0e9e6b !important;
}
.mscd-legal-page-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
}
.mscd-legal-page-updated {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 0.25rem;
}
.mscd-legal-page-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* ── Account Danger Zone ── */
.mscd-account-danger {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.mscd-account-danger h2 {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.mscd-account-danger-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mscd-btn-danger-outline {
  background: #fff !important;
  color: #dc2626 !important;
  border: 1.5px solid #dc2626 !important;
  border-radius: 11px;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.9rem !important;
  text-decoration: none !important;
}
.mscd-btn-danger-outline:hover {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}
.mscd-account-danger-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* ── Methodology Page ── */
.mscd-methodology {
  max-width: 780px;
  margin: 2rem auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #1a202c;
}
.mscd-methodology-inner {
  padding: 0 1rem;
}
.mscd-methodology-intro {
  font-size: 1.08rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 1rem 0 2.5rem;
}
.mscd-methodology-toc {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.mscd-methodology-toc-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}
.mscd-methodology-toc-list {
  margin: 0;
  padding-left: 1.25rem;
}
.mscd-methodology-toc-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.mscd-methodology-toc-list a {
  color: #11b47d;
  text-decoration: none;
  font-weight: 500;
}
.mscd-methodology-toc-list a:hover {
  text-decoration: underline;
}
.mscd-methodology section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.mscd-methodology section:last-of-type {
  border-bottom: none;
}
.mscd-methodology h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.mscd-methodology h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 1.5rem 0 0.5rem;
}
.mscd-methodology p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 0.75rem;
}
.mscd-methodology a {
  color: #11b47d;
  text-decoration: none;
}
.mscd-methodology a:hover {
  text-decoration: underline;
}
.mscd-methodology code {
  font-size: 0.85rem;
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  color: #111827;
}
.mscd-methodology-footer {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 11px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.mscd-methodology-footer p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 0.35rem;
}
.mscd-methodology-footer p:last-child {
  margin-bottom: 0;
}

/* ── Legal Page Navigation ── */
.mscd-legal-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.mscd-legal-home-btn {
  background: #fff !important;
  color: #11b47d !important;
  border: 1.5px solid #11b47d !important;
  border-radius: 11px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}
.mscd-legal-home-btn:hover {
  background: #11b47d !important;
  color: #f3f4f6 !important;
  border-color: #11b47d !important;
  text-decoration: none !important;
}
.mscd-legal-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #11b47d;
  border: 1.5px solid #11b47d;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 0;
}
.mscd-legal-top-btn:hover {
  background: #11b47d;
  color: #f3f4f6;
  border-color: #11b47d;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mscd-hero {
    padding: 4rem 1.25rem 3rem;
  }
  .mscd-hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  .mscd-hero-btn {
    width: 100%;
    text-align: center;
  }
  .mscd-section-title,
  .mscd-hiw-title,
  .mscd-hero-headline {
    font-size: 2.25rem !important;
  }
  .mscd-hiw,
  .mscd-faq-section,
  .mscd-footer {
    width: 89%;
    padding: 2.5rem 1.5rem;
  }
  .mscd-hiw-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mscd-hiw-step {
    display: block;
    text-align: left;
  }
  .mscd-hiw-num {
    font-size: 2.25rem;
    margin-bottom: 0.4rem;
  }
  .mscd-tier-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .mscd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .mscd-footer-brand {
    grid-column: 1 / -1;
  }
  .mscd-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
  .mscd-footer-privacy {
    text-align: center;
  }
  .mscd-trust-items {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .mscd-footer-grid {
    grid-template-columns: 1fr;
  }
  .mscd-hero-headline,
  .mscd-section-title,
  .mscd-hiw-title {
    font-size: 1.85rem !important;
  }
  .mscd-tier-price {
    font-size: 2rem;
  }
  .mscd-hiw,
  .mscd-faq-section,
  .mscd-footer {
    width: 89%;
    padding: 2rem 1.25rem;
  }
}
