/* ===== Page Documentation ===== */

/* Barre de progression de lecture */
.mmdoc-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
}

.mmdoc-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.1s linear;
}

/* Révélation au scroll */
.mmdoc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mmdoc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */
.mmdoc-hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}

.mmdoc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.mmdoc-hero-copy {
  text-align: left;
}

.mmdoc-hero-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mmdoc-hero-mm-logo {
  display: block;
  height: clamp(28px, 4vw, 36px);
  width: auto;
  max-width: min(100%, 180px);
}

.mmdoc-hero-mm-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.mmdoc-hero-brand-x {
  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.mmdoc-hero-patio-logo {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.22);
}

.mmdoc-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 133, 0, 0.1) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(255, 249, 243, 0.95) 100%);
  border: 1px solid rgba(255, 133, 0, 0.16);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  min-height: 320px;
}

.mmdoc-hero-visual .mmdoc-live-shot--phone,
.mmdoc-live-shot--hero {
  max-width: min(100%, 420px);
  width: 100%;
  margin-inline: auto;
}

.mmdoc-hero-visual .mmdoc-live-shot--phone .mmdoc-live-shot-viewport,
.mmdoc-live-shot--hero .mmdoc-live-shot-viewport {
  --mmdoc-live-height: 700px;
}

.mmdoc-hero-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.mmdoc-hero-powered img {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.9;
}

.mmdoc-hero-visual .mmdoc-shot--phone,
.mmdoc-hero-visual .mmdoc-live-shot--phone {
  max-width: 100%;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.mmdoc-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.mmdoc-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.mmdoc-hero-actions {
  margin-top: 1.25rem;
}

/* Layout : sommaire + contenu */
.mmdoc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.mmdoc-toc {
  position: sticky;
  top: calc(var(--site-header-height) + 1rem);
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(255, 133, 0, 0.14);
  box-shadow: 0 8px 20px rgba(107, 46, 0, 0.05);
}

.mmdoc-toc-title {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.mmdoc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.mmdoc-toc a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mmdoc-toc a:hover {
  background: rgba(255, 133, 0, 0.08);
}

.mmdoc-toc a.is-active {
  background: rgba(255, 133, 0, 0.12);
  color: var(--secondary);
  font-weight: 800;
}

.mmdoc-toc-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

.mmdoc-toc-icon svg {
  width: 100%;
  height: 100%;
}

/* Sections */
.mmdoc-content {
  min-width: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.mmdoc-section {
  scroll-margin-top: calc(var(--site-header-height) + 1.25rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 133, 0, 0.13);
  box-shadow: 0 10px 26px rgba(107, 46, 0, 0.05);
}

.mmdoc-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mmdoc-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 133, 0, 0.16), rgba(255, 133, 0, 0.05));
  color: var(--primary);
}

.mmdoc-section-icon svg {
  width: 22px;
  height: 22px;
}

.mmdoc-section h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--secondary);
}

.mmdoc-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Étapes numérotées */
.mmdoc-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.mmdoc-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.mmdoc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(255, 133, 0, 0.35);
}

.mmdoc-step h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1rem;
  color: var(--secondary);
}

.mmdoc-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Cartes */
.mmdoc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

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

.mmdoc-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 133, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mmdoc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(107, 46, 0, 0.09);
}

.mmdoc-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--secondary);
}

.mmdoc-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.mmdoc-card--promo {
  background: linear-gradient(135deg, rgba(255, 133, 0, 0.14), rgba(255, 133, 0, 0.04));
  border-color: rgba(255, 133, 0, 0.4);
}

/* Encadrés */
.mmdoc-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  border: 1px dashed rgba(255, 133, 0, 0.5);
  background: rgba(255, 133, 0, 0.06);
}

.mmdoc-callout span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
}

.mmdoc-callout span svg {
  width: 100%;
  height: 100%;
}

.mmdoc-callout p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.55;
}

/* Accordéons */
.mmdoc-acc {
  border: 1px solid rgba(255, 133, 0, 0.16);
  border-radius: 13px;
  background: var(--bg-soft);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.mmdoc-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--secondary);
  position: relative;
  transition: background-color 0.15s ease;
}

.mmdoc-acc summary:hover {
  background: rgba(255, 133, 0, 0.07);
}

.mmdoc-acc summary::-webkit-details-marker {
  display: none;
}

.mmdoc-acc summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.mmdoc-acc[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.mmdoc-acc-body {
  padding: 0 1rem 0.9rem;
}

.mmdoc-acc-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.mmdoc-acc-body a {
  color: var(--primary);
  font-weight: 700;
}

/* Onglets */
.mmdoc-tabs {
  margin-bottom: 1.1rem;
}

.mmdoc-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.mmdoc-tabs-nav button {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 133, 0, 0.3);
  background: #fff;
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mmdoc-tabs-nav button:hover {
  background: rgba(255, 133, 0, 0.08);
}

.mmdoc-tabs-nav button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mmdoc-tab-panel {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 13px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 133, 0, 0.14);
}

.mmdoc-tab-panel.is-active {
  display: block;
  animation: mmdoc-fade 0.35s ease;
}

.mmdoc-tab-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Listes à coche */
.mmdoc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mmdoc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 600;
}

.mmdoc-checklist li span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 133, 0, 0.14);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.mmdoc-checklist li span svg {
  width: 12px;
  height: 12px;
}

/* Parcours client */
.mmdoc-flow {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mmdoc-flow-item {
  flex: 1 1 150px;
  min-width: 150px;
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 133, 0, 0.14);
  text-align: center;
}

.mmdoc-flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 133, 0, 0.12);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.mmdoc-flow-icon svg {
  width: 20px;
  height: 20px;
}

.mmdoc-flow-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.mmdoc-flow-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.mmdoc-flow-arrow {
  display: inline-flex;
  align-self: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.mmdoc-flow-arrow svg {
  width: 100%;
  height: 100%;
}

/* CTA */
.mmdoc-cta {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--secondary) 0%, #8a4207 70%, #b35b0a 100%);
  color: #fff;
}

.mmdoc-cta h2 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
}

.mmdoc-cta p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.mmdoc-cta .hero-actions {
  justify-content: center;
}

.mmdoc-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.mmdoc-cta-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mmdoc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

/* Aperçus live (iframes) */
.mmdoc-live-shot {
  --mmdoc-live-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.mmdoc-live-shot-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.mmdoc-live-shot-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.mmdoc-live-shot-chrome span:first-child { background: #fca5a5; }
.mmdoc-live-shot-chrome span:nth-child(2) { background: #fde047; }
.mmdoc-live-shot-chrome span:nth-child(3) { background: #86efac; }

.mmdoc-live-shot-chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mmdoc-live-shot-viewport {
  height: var(--mmdoc-live-height);
  background: #f8fafc;
}

.mmdoc-live-shot-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.mmdoc-live-shot--phone {
  max-width: 320px;
  margin-inline: auto;
}

.mmdoc-live-shot--phone .mmdoc-live-shot-viewport {
  --mmdoc-live-height: 640px;
}

.mmdoc-live-shot-link {
  display: block;
  padding: 0.65rem 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 133, 0, 0.08);
  border-top: 1px solid rgba(255, 133, 0, 0.18);
  text-decoration: none;
}

.mmdoc-live-shot-link:hover {
  background: rgba(255, 133, 0, 0.14);
  text-decoration: none;
}

/* Bannières conversion */
.mmdoc-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: 1.35rem;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mmdoc-cta-banner-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 52ch;
}

.mmdoc-cta-banner-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mmdoc-cta-banner-title {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.25;
}

.mmdoc-cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mmdoc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.mmdoc-cta-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.mmdoc-cta-btn--primary {
  background: #fff;
  color: #9a3412;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.mmdoc-cta-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.35);
}

.mmdoc-cta-btn--whatsapp {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}

.mmdoc-cta-banner--sunrise {
  background: linear-gradient(125deg, #ff8500 0%, #e85d04 45%, #c2410c 100%);
  color: #fff;
}

.mmdoc-cta-banner--sunrise .mmdoc-cta-banner-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mmdoc-cta-banner--sunrise .mmdoc-cta-btn--primary {
  color: #c2410c;
}

.mmdoc-cta-banner--ocean {
  background: linear-gradient(125deg, #0ea5e9 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
}

.mmdoc-cta-banner--ocean .mmdoc-cta-banner-eyebrow {
  background: rgba(255, 255, 255, 0.16);
}

.mmdoc-cta-banner--violet {
  background: linear-gradient(125deg, #a855f7 0%, #7c3aed 55%, #5b21b6 100%);
  color: #fff;
}

.mmdoc-cta-banner--gold {
  background: linear-gradient(125deg, #fbbf24 0%, #f59e0b 40%, #d97706 100%);
  color: #451a03;
}

.mmdoc-cta-banner--gold .mmdoc-cta-btn--ghost {
  border-color: rgba(69, 26, 3, 0.25);
  color: #451a03;
  background: rgba(255, 255, 255, 0.35);
}

.mmdoc-cta-banner--emerald {
  background: linear-gradient(125deg, #34d399 0%, #10b981 45%, #059669 100%);
  color: #fff;
}

.mmdoc-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

.mmdoc-btn-whatsapp:hover {
  background: #16a34a;
  text-decoration: none;
  filter: brightness(1.02);
}

.mmdoc-btn-whatsapp--lg {
  min-height: 48px;
  padding: 0.8rem 1.35rem;
}

.mmdoc-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.65rem max(1rem, env(safe-area-inset-left)) calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 35%, #fff 100%);
  pointer-events: none;
}

.mmdoc-sticky-cta:not([hidden]) {
  pointer-events: auto;
}

.mmdoc-sticky-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 133, 0, 0.25);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.mmdoc-sticky-cta-inner p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--secondary);
}

.mmdoc-sticky-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@keyframes mmdoc-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .mmdoc-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .mmdoc-hero-layout {
    grid-template-columns: 1fr;
  }

  .mmdoc-hero-copy {
    text-align: center;
  }

  .mmdoc-hero-brand-row {
    justify-content: center;
  }

  .mmdoc-hero-actions {
    justify-content: center;
  }

  .mmdoc-hero-actions .btn,
  .mmdoc-hero-actions .mmdoc-btn-whatsapp {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 140px;
  }

  .mmdoc-hero-visual {
    max-width: min(100%, 460px);
    margin: 0 auto;
    width: 100%;
  }

  .mmdoc-hero-visual .mmdoc-live-shot--phone,
  .mmdoc-live-shot--hero {
    max-width: min(100%, 400px);
  }

  .mmdoc-hero-visual .mmdoc-live-shot--phone .mmdoc-live-shot-viewport,
  .mmdoc-live-shot--hero .mmdoc-live-shot-viewport {
    --mmdoc-live-height: 560px;
  }

  .mmdoc-layout {
    grid-template-columns: 1fr;
  }

  .mmdoc-toc {
    display: none;
  }

  .mmdoc-cards,
  .mmdoc-cards--2 {
    grid-template-columns: 1fr;
  }

  .mmdoc-flow-arrow {
    display: none;
  }

  .mmdoc-live-shot-viewport {
    --mmdoc-live-height: 420px;
  }

  .mmdoc-live-shot--phone .mmdoc-live-shot-viewport {
    --mmdoc-live-height: 480px;
  }

  .mmdoc-cta-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .mmdoc-cta-banner-actions {
    width: 100%;
  }

  .mmdoc-cta-banner-actions .mmdoc-cta-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mmdoc-sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mmdoc-sticky-cta-actions {
    width: 100%;
    justify-content: center;
  }

  .mmdoc-sticky-cta-actions .mmdoc-cta-btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .mmdoc-section {
    padding: 1rem;
  }

  .mmdoc-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .mmdoc-hero-actions .btn,
  .mmdoc-hero-actions .mmdoc-btn-whatsapp {
    flex: 1 1 100%;
  }

  .mmdoc-live-shot-viewport {
    --mmdoc-live-height: 360px;
  }

  .mmdoc-live-shot--phone .mmdoc-live-shot-viewport {
    --mmdoc-live-height: 420px;
  }

  .mmdoc-live-shot-chrome em {
    max-width: 48%;
    font-size: 0.66rem;
  }

  .mmdoc-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mmdoc-cta-actions .btn,
  .mmdoc-cta-actions .mmdoc-btn-whatsapp {
    width: 100%;
  }
}

/* RTL documentation */
html[dir="rtl"] .mmdoc-hero-copy,
html[dir="rtl"] .mmdoc-section,
html[dir="rtl"] .mmdoc-cta {
  text-align: right;
}

html[dir="rtl"] .mmdoc-hero-brand-row,
html[dir="rtl"] .mmdoc-hero-actions,
html[dir="rtl"] .mmdoc-cta-actions {
  justify-content: center;
}

html[dir="rtl"] .mmdoc-hero-brand-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .mmdoc-toc a,
html[dir="rtl"] .mmdoc-step,
html[dir="rtl"] .mmdoc-checklist li,
html[dir="rtl"] .mmdoc-callout,
html[dir="rtl"] .mmdoc-demo-head,
html[dir="rtl"] .mmdoc-cta-banner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .mmdoc-acc summary {
  padding: 0.85rem 1rem 0.85rem 2.4rem;
}

html[dir="rtl"] .mmdoc-acc summary::after {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .mmdoc-live-shot-chrome em {
  margin-left: 0;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mmdoc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
