/* MMC Plugins hub — lean, brand-first */

:root {
  --mmc-ink: #0b1220;
  --mmc-slate: #1a2332;
  --mmc-mist: #e8eef4;
  --mmc-paper: #f4f7fa;
  --mmc-teal: #0d9488;
  --mmc-teal-deep: #0f766e;
  --mmc-glow: rgba(13, 148, 136, 0.22);
  --mmc-max: 1120px;
}

.mmc-hub {
  background: var(--mmc-paper);
  color: var(--mmc-ink);
}

.mmc-hub .wp-site-blocks > header,
.mmc-hub .wp-site-blocks > footer {
  margin: 0;
}

/* —— Shell —— */
.mmc-shell {
  width: min(100% - 2rem, var(--mmc-max));
  margin-inline: auto;
}

.mmc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  position: relative;
  z-index: 5;
}

.mmc-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.mmc-nav__logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(240px, 58vw);
}

.mmc-nav__brand span {
  color: var(--mmc-teal-deep);
}

.mmc-nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mmc-nav__links a {
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.mmc-nav__links a:hover {
  color: var(--mmc-ink);
}

.mmc-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--mmc-ink);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.mmc-nav__cta:hover {
  background: var(--mmc-slate);
}

/* —— Hero —— */
.mmc-hero {
  position: relative;
  isolation: isolate;
  min-height: min(56vh, 520px);
  display: grid;
  align-items: end;
  padding: 0 0 2.25rem;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 18%, var(--mmc-glow), transparent 55%),
    linear-gradient(165deg, #071018 0%, #0b1220 42%, #122033 100%);
  color: #f8fafc;
}

.mmc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.mmc-hero .mmc-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  padding-top: 1.25rem;
}

.mmc-hero__copy {
  max-width: 34rem;
  padding-bottom: 1rem;
  animation: mmc-rise 0.7s ease both;
}

.mmc-hero__brand {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
}

.mmc-hero__brand em {
  font-style: normal;
  color: #5eead4;
}

.mmc-hero__line {
  margin: 0 0 1.6rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
  max-width: 28rem;
}

.mmc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mmc-btn:hover {
  transform: translateY(-1px);
}

.mmc-btn--primary {
  background: #5eead4;
  color: #042f2e;
}

.mmc-btn--primary:hover {
  background: #99f6e4;
  color: #042f2e;
}

.mmc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.mmc-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Visual plane */
.mmc-hero__visual {
  position: relative;
  min-height: 280px;
  animation: mmc-rise 0.85s 0.08s ease both;
}

.mmc-stage {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(100%, 520px);
  aspect-ratio: 16 / 11;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(160deg, #152033, #0d1522);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mmc-stage__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mmc-stage__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.mmc-stage__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 14px;
  height: calc(100% - 40px);
}

.mmc-pane {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px;
}

.mmc-pane--accent {
  background: linear-gradient(165deg, rgba(13, 148, 136, 0.28), rgba(13, 148, 136, 0.08));
  border-color: rgba(94, 234, 212, 0.25);
}

.mmc-skel {
  height: 10px;
  border-radius: 6px;
  background: rgba(226, 232, 240, 0.12);
  margin-bottom: 8px;
}

.mmc-skel--lg { height: 18px; width: 72%; }
.mmc-skel--md { width: 88%; }
.mmc-skel--sm { width: 54%; }
.mmc-skel--teal {
  background: rgba(94, 234, 212, 0.35);
  width: 64%;
}

.mmc-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.35);
}

@keyframes mmc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* —— Product —— */
.mmc-section {
  padding: 4.5rem 0;
}

.mmc-section--index {
  padding-bottom: 2rem;
}

.mmc-section--product {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.mmc-section--alt {
  background: linear-gradient(180deg, #eef3f7 0%, var(--mmc-paper) 100%);
}

.mmc-section__head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.mmc-section__head h2 {
  font-family: Syne, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: var(--mmc-ink);
}

.mmc-section__head p {
  margin: 0;
  color: #475569;
}

.mmc-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.mmc-jump {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mmc-jump__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mmc-jump__item:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  color: inherit;
}

.mmc-jump__item--wccp:hover {
  border-color: #7dd3fc;
}

.mmc-jump__code {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mmc-teal-deep);
}

.mmc-jump__item--wccp .mmc-jump__code {
  color: #0369a1;
}

.mmc-jump__name {
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--mmc-ink);
}

.mmc-jump__hint {
  font-size: 0.86rem;
  color: #64748b;
}

.mmc-product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  padding: 0.25rem 0 0;
}

.mmc-product__title {
  font-family: Syne, system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
}

.mmc-wccp-brand-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 0 0.85rem;
}

.mmc-fto-brand-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 0 0 0.85rem;
}

.mmc-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.mmc-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #e2eef0;
  color: #115e59;
}

.mmc-tag--sky {
  background: #e0f2fe;
  color: #075985;
}

.mmc-product__desc {
  margin: 0 0 1rem;
  color: #475569;
  max-width: 38rem;
}

.mmc-bullets {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  color: #334155;
  max-width: 38rem;
}

.mmc-bullets li {
  margin-bottom: 0.35rem;
}

.mmc-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mmc-btn--ink {
  background: var(--mmc-ink);
  color: #fff;
}

.mmc-btn--ink:hover {
  background: var(--mmc-slate);
  color: #fff;
}

.mmc-btn--line {
  background: transparent;
  color: var(--mmc-ink);
  border-color: #cbd5e1;
}

.mmc-btn--line:hover {
  border-color: var(--mmc-ink);
  color: var(--mmc-ink);
}

.mmc-btn--muted {
  opacity: 0.55;
  cursor: default;
  transform: none !important;
}

.mmc-product__aside {
  background: linear-gradient(145deg, #0b1220, #163042);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mmc-product__aside--sky {
  background: linear-gradient(145deg, #0c1a28, #0e3a56);
}

.mmc-product__aside strong {
  font-family: Syne, system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.mmc-product__aside p {
  margin: 0.5rem 0 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.92rem;
}

.mmc-product__aside code {
  color: #99f6e4;
  font-size: 0.88em;
}

.mmc-product__aside--sky code {
  color: #7dd3fc;
}

.mmc-product__aside a {
  margin-top: 1rem;
  color: #5eead4;
  font-weight: 600;
  text-decoration: none;
}

.mmc-product__aside--sky a {
  color: #7dd3fc;
}

.mmc-product__aside a:hover {
  text-decoration: underline;
}

/* —— Trust strip —— */
.mmc-trust {
  padding: 3rem 0 4rem;
}

.mmc-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mmc-trust__item h3 {
  font-family: Syne, system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.mmc-trust__item p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* —— Buyer manual / docs page —— */
.mmc-doc-hero {
  padding: 2.75rem 0 2rem;
  background:
    radial-gradient(70% 80% at 90% 0%, var(--mmc-glow), transparent 55%),
    linear-gradient(165deg, #071018 0%, #0b1220 55%, #122033 100%);
  color: #f8fafc;
}

.mmc-doc-hero .mmc-kicker {
  color: #5eead4;
}

.mmc-doc-hero h1 {
  font-family: Syne, system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.35rem 0 0.75rem;
}

.mmc-doc-hero p {
  margin: 0;
  max-width: 42rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.05rem;
  line-height: 1.55;
}

.mmc-doc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.mmc-doc {
  padding: 2.5rem 0 3.5rem;
}

.mmc-doc__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
}

.mmc-doc__toc a {
  color: var(--mmc-teal-deep);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.mmc-doc__toc a:hover {
  text-decoration: underline;
}

.mmc-doc section {
  margin: 0 0 2.25rem;
  max-width: 46rem;
}

.mmc-doc h2 {
  font-family: Syne, system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--mmc-ink);
}

.mmc-doc h3 {
  font-family: Syne, system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 1.25rem 0 0.45rem;
  color: var(--mmc-slate);
}

.mmc-doc p,
.mmc-doc li {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.65;
}

.mmc-doc ul,
.mmc-doc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2em;
}

.mmc-doc li + li {
  margin-top: 0.35rem;
}

.mmc-doc code,
.mmc-doc .mmc-doc__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #eef4f8;
  color: #0f766e;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.mmc-doc pre {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mmc-doc pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.mmc-doc__note {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  background: #ecfdf8;
  border-left: 3px solid var(--mmc-teal);
  border-radius: 0 8px 8px 0;
  color: #134e4a;
  font-size: 0.92rem;
}

.mmc-doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.mmc-doc__table th,
.mmc-doc__table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #dbe4ee;
  vertical-align: top;
}

.mmc-doc__table th {
  color: var(--mmc-ink);
  font-weight: 600;
  background: #f8fafc;
}

.mmc-doc__table code {
  white-space: nowrap;
}

/* —— Footer —— */
.mmc-foot {
  background: var(--mmc-ink);
  color: rgba(226, 232, 240, 0.78);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.mmc-foot .mmc-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.mmc-foot__top {
  align-items: center;
}

.mmc-foot__note {
  display: block;
  margin: 1.15rem auto 0;
  max-width: var(--mmc-max);
  width: min(100% - 2rem, var(--mmc-max));
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.mmc-foot a {
  color: #99f6e4;
  text-decoration: none;
}

.mmc-foot a:hover {
  text-decoration: underline;
}

.mmc-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Syne, system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mmc-foot__brand:hover {
  color: #fff;
  text-decoration: none;
}

.mmc-foot__logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.mmc-foot__legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  max-width: var(--mmc-max);
}

.mmc-foot__copy {
  margin: 0 0 0.55rem;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mmc-foot__copy strong {
  color: #fff;
  font-weight: 700;
}

.mmc-foot__disclaimer {
  margin: 0;
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 52rem;
  margin-inline: auto;
}

.mmc-hero__logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 1rem;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .mmc-hero .mmc-shell,
  .mmc-product,
  .mmc-trust__grid,
  .mmc-jump {
    grid-template-columns: 1fr;
  }

  .mmc-hero {
    min-height: auto;
    padding-bottom: 0;
    align-items: stretch;
  }

  .mmc-hero .mmc-shell {
    padding-top: 1.25rem;
    gap: 1.75rem;
  }

  .mmc-hero__visual {
    min-height: 260px;
  }

  .mmc-stage {
    position: relative;
    inset: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .mmc-nav__links a:not(.mmc-nav__cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mmc-hero__copy,
  .mmc-hero__visual,
  .mmc-btn {
    animation: none !important;
    transition: none !important;
  }
}
