/* Current shared finishing layer. Homepage rules are scoped to mia-refined-home. */
body.mia-refined-home #main #top h1 > :is(.mh-title-line, em) { font-size: 1.1em; line-height: 1.12; }
body.mia-refined-home #main #top .mia-lead-sentence { display: block; }
body.mia-refined-home #main #top .mia-lead-phrase { display: inline; }
body.mia-refined-home #main #top .mia-lead-phrase > strong { display: inline; margin: 0; }
body.mia-refined-home #main #top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 44px;
}
body.mia-refined-home #main #top::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 440px 440px at -70px 80px, #207ba22d, transparent 85%),
              radial-gradient(ellipse 400px 500px at calc(100% + 80px) 580px, #8c4db52b, transparent 85%);
}
body.mia-refined-home #main #top .mh-hero-grid { z-index: 1; }
body.mia-refined-home #main #top .mh-visual {
  width: min(1020px, 100%);
  max-width: 1020px;
  margin: -10px auto 0;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 87%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 87%, transparent);
}
body.mia-refined-home #main #top .mh-actions { gap: 20px; }
body.mia-refined-home #main :is(#top, #start-learning) .mh-primary {
  box-shadow: var(--mia-brand-button-shadow), 0 0 0 4px #0e0e19, 0 0 0 5px #b4a5e522 !important;
}
body.mia-refined-home #main :is(#top, #start-learning) .mh-primary:hover {
  box-shadow: var(--mia-brand-button-hover-shadow), 0 0 0 4px #11111d, 0 0 0 5px #b4a5e53b !important;
}

/* Keep the three hero features open against the black page. */
body.mia-refined-home #main #watch-breakdown { padding-top: 0; }
body.mia-refined-home #main #watch-breakdown .mia-video-intro { margin: 38px auto 16px; }
body.mia-refined-home #main #watch-breakdown .mia-video-intro p { font-size: 15px; color: #d1ccd9; }
body.mia-refined-home #main #watch-breakdown .mh-video-frame {
  aspect-ratio: auto;
  padding: 8px;
  border: 1px solid #c3b7e530;
  border-radius: 20px;
  background: linear-gradient(145deg, #171c2a, #100e19 65%);
  box-shadow: inset 0 1px 0 #ffffff10, 0 0 0 1px #8e61b366, 0 0 18px 4px #61318d70, 0 0 34px 7px #48206852;
  overflow: hidden;
}
body.mia-refined-home #main #watch-breakdown .mia-video-preview,
body.mia-refined-home #main #watch-breakdown .mh-video-frame iframe {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
body.mia-refined-home #main #watch-breakdown .mia-video-play {
  background: #17131de8;
  border: 1px solid #ffffff45;
  box-shadow: inset 0 1px 0 #ffffff25, 0 8px 26px #0006;
  backdrop-filter: blur(8px);
}

/* FTMO's visual-plus-feature-list rhythm, using MIA's own glass artwork. */
body.mia-refined-home #main #included { padding: 80px 0; }
body.mia-refined-home #main #included .mh-offer-composition {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto auto;
  column-gap: 56px;
  row-gap: 20px;
  width: calc(100% - 64px);
  max-width: 1120px;
  align-items: start;
}
body.mia-refined-home #main #included .section-head {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
}
body.mia-refined-home #main #included .section-head h2 {
  text-align: center;
  font-size: clamp(44px, 5.3vw, 72px);
  line-height: 1.07;
  letter-spacing: -.045em;
}
body.mia-refined-home #main #included .mia-section-art--included {
  width: min(340px, 100%);
  max-width: 340px;
  height: auto;
  margin: 0 auto 26px;
}
body.mia-refined-home #main #included .mia-section-art--included img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
body.mia-refined-home #main #included .mh-included-panel.mia-included-card {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 28px !important;
  --mia-card-surface: radial-gradient(ellipse at 0 100%, #268bdf28, transparent 64%), radial-gradient(ellipse at 100% 0, #d23ec919, transparent 64%), linear-gradient(135deg, #11182a, #0d0b18 78%);
  --mia-card-edge: linear-gradient(35deg, #39cef097, #627fce52 40%, #db58bc69 80%, #c394e66b);
  --mia-card-shadow: inset 0 1px 0 #ffffff12, -12px 15px 32px -20px #6a76d570, 0 18px 40px #0004;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-list::after { content: none; }
body.mia-refined-home #main #included .mia-included-card .mh-included-list > li {
  display: block;
  grid-area: auto;
  min-height: 0;
  margin: 0;
  padding: 24px 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-list > li + li { border-top: 1px solid #bfc7e51c !important; }
body.mia-refined-home #main #included .mia-included-card .mh-included-copy {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  padding: 0;
  text-align: left;
  min-width: 0;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-icon {
  position: static;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 40px;
  height: 34px;
  margin: 0;
  transform: none;
  inset: auto;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-copy:not(:has(.mh-session-time)) .mh-included-icon { grid-row: 1 / 3; }
body.mia-refined-home #main #included .mia-included-card .mh-included-copy > strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  padding: 0;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-copy > span:not(.mh-included-icon) {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #b9bdcc;
}
body.mia-refined-home #main #included .mia-included-card .mh-session-time {
  grid-column: 2;
  grid-row: 3;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #8dd7e6;
}
body.mia-refined-home #main #included .mia-included-card .mh-included-list > li:nth-child(3) .mh-session-time { color: #c1a6e2; }
body.mia-refined-home #main #included .mia-included-more { grid-column: 2; grid-row: 2; margin: 0; text-align: left; }
body.mia-refined-home #main #included .mia-included-more a { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; }
body.mia-refined-home #main #included .mh-included-action { grid-column: 2; grid-row: 3; margin: 0; text-align: left; }

@media (max-width: 1000px) {
  body.mia-refined-home #main #included .mh-offer-composition {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    row-gap: 20px;
  }
  body.mia-refined-home #main #included .section-head,
  body.mia-refined-home #main #included .mh-included-panel.mia-included-card,
  body.mia-refined-home #main #included .mia-included-more,
  body.mia-refined-home #main #included .mh-included-action { grid-column: 1; grid-row: auto; text-align: center; }
  body.mia-refined-home #main #included .section-head { margin-bottom: 16px; }
  body.mia-refined-home #main #included .section-head h2 { text-align: center; }
  body.mia-refined-home #main #included .mia-section-art--included { width: 240px; margin: 0 auto 24px; }
}
@media (max-width: 800px) {
  body.mia-refined-home #main #included .section-head h2 { font-size: clamp(40px, 11vw, 56px); }
}
@media (max-width: 700px) {
  body.mia-refined-home #main #top .mh-lead { font-size: clamp(14px, 4.1vw, 16px); line-height: 1.65; }
  body.mia-refined-home #main #top .mia-lead-phrase { display: block; white-space: nowrap; }
  body.mia-refined-home #main #top .mia-lead-sentence + .mia-lead-sentence { margin-top: 6px; }
  body.mia-refined-home #main #top { padding-top: 30px; }
  body.mia-refined-home #main #top::before {
    background: radial-gradient(ellipse 190px 320px at -80px 60px, #207ba229, transparent 85%), radial-gradient(ellipse 180px 340px at calc(100% + 100px) 400px, #8c4db52b, transparent 85%);
  }
  body.mia-refined-home #main #top .mh-visual { margin: 0 auto; }
  body.mia-refined-home #main #top .mh-actions { gap: 16px; }
  body.mia-refined-home #main #watch-breakdown .mia-video-intro { margin-top: 30px; }
  body.mia-refined-home #main #watch-breakdown .mh-video-frame { padding: 5px; border-radius: 14px; }
  body.mia-refined-home #main #watch-breakdown .mia-video-preview,
  body.mia-refined-home #main #watch-breakdown .mh-video-frame iframe { border-radius: 8px; }
  body.mia-refined-home #main #included { padding: 48px 0; }
  body.mia-refined-home #main #included .mh-offer-composition { width: calc(100% - 32px); }
  body.mia-refined-home #main #included .section-head h2 { font-size: clamp(40px, 11vw, 56px); }
  body.mia-refined-home #main #included .mia-section-art--included { width: 210px; }
  body.mia-refined-home #main #included .mh-included-panel.mia-included-card { padding: 4px 20px !important; }
  body.mia-refined-home #main #included .mia-included-card .mh-included-list > li { padding: 24px 0 !important; }
  body.mia-refined-home #main #included .mia-included-card .mh-included-copy { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 14px; }
  body.mia-refined-home #main #included .mia-included-card .mh-included-icon { width: 32px; height: 30px; }
  body.mia-refined-home #main #included .mia-included-card .mh-included-copy:not(:has(.mh-session-time)) .mh-included-icon { grid-row: 1 / 3; }
body.mia-refined-home #main #included .mia-included-card .mh-included-copy > strong { font-size: 17px; }
  body.mia-refined-home #main #included .mia-included-card .mh-included-copy > span:not(.mh-included-icon) { font-size: 15px; }
}
/* Shared final-audit refinements. Keep the established palette and scale. */
body :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #80dfea;
  outline-offset: 4px;
}
body .about-copy > h2 .accent-text {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}
body .mca-jump-nav .mia-jump-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #99dce7;
}
body .mi-toc summary { min-height: 28px; }
body .mi-document-section { scroll-margin-top: 100px; }
@media (max-width: 760px) {
  body .mi-toc summary { min-height: 32px; }
  body .mi-document-section { scroll-margin-top: 88px; }
}
@media (max-width: 360px) {
  body.mia-refined-home #main #included .mh-included-panel.mia-included-card {
    padding-inline: 15px !important;
  }
  body.mia-refined-home #main #included .mia-included-card .mh-included-copy {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
  }
}
body .about-copy > h2 { text-align: left !important; }
@media (max-width: 360px) {
  body.mia-refined-home #main .mh-at-glance > a { padding-inline: 3px !important; }
  body.mia-refined-home #main .mh-at-glance strong { white-space: nowrap; }
}
/* Keep short centered introductions from ending in a single orphaned word. */
body:not(.mia-refined-home) .section-head > p,
body .mi-page-heading > p,
body .mca-hero .mca-shell > p { text-wrap: balance; }
/* Discord uses its own recognizable brand color within the MIA button treatment. */
body #main :is(.mh-discord-cta, .mh-membership-discord) > svg {
  display: block !important;
  color: #5865f2 !important;
  fill: currentColor !important;
  stroke: none !important;
  width: 23px !important;
  height: 23px !important;
  flex: 0 0 23px;
}
/* The guide shares the homepage's dark glass surface, purple action, and colored icons. */
body .guide-modal.mia-guide {
  --mia-card-surface: radial-gradient(ellipse at 0 100%, #268bdf21, transparent 64%), radial-gradient(ellipse at 100% 0, #d23ec915, transparent 64%), linear-gradient(135deg, #11182a, #0d0b18 78%);
  --mia-card-edge: linear-gradient(35deg, #39cef07a, #627fce44 40%, #db58bc55 80%, #c394e65c);
  --mia-card-shadow: inset 0 1px 0 #ffffff12, -12px 15px 32px -20px #6a76d560;
}
body .guide-modal.mia-guide .guide-kicker .guide-kicker-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #8bdce9;
}
body .guide-modal.mia-guide .guide-kicker-icon svg { width: 20px; height: 20px; }
body .guide-modal.mia-guide .guide-topics .guide-point:nth-child(1) .guide-point-icon { color: #44dfff !important; }
body .guide-modal.mia-guide .guide-topics .guide-point:nth-child(2) .guide-point-icon { color: #66aaff !important; }
body .guide-modal.mia-guide .guide-topics .guide-point:nth-child(3) .guide-point-icon { color: #bb9af1 !important; }
body .guide-modal.mia-guide .guide-topics .guide-point:nth-child(4) .guide-point-icon { color: #e966bd !important; }
body .guide-modal.mia-guide .guide-points.guide-topics {
  background: #ffffff03 !important;
  border-color: #bfc7e51f !important;
}
body .guide-modal.mia-guide .guide-contact-hint { color: #c2c4d1 !important; }
body .guide-modal.mia-guide .modal-close { color: #d8d5e5; }

/* Discord buttons: restrained brand-purple outline, without outer glow. */
body.mia-short-home #main :is(.mh-discord-cta, .mh-membership-discord),
body.mia-short-home #main :is(.mh-discord-cta, .mh-membership-discord):hover {
  border-color: #5865f266 !important;
  box-shadow: inset 0 1px 0 #ffffff0a !important;
}

/* Match the standard 28px heading-to-content spacing in the stacked layout. */
@media (max-width: 1000px) {
  body.mia-refined-home #main #included .section-head { margin: 0 auto 8px !important; padding-bottom: 0; }
}

/* Keep the offer action attached to the benefits inside the glass card. */
body.mia-refined-home #main #included .mia-included-footer {
  border-top: 1px solid #bfc7e51c;
  padding: 24px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
body.mia-refined-home #main #included .mia-included-footer .mh-included-action { margin: 0; text-align: center; }
body.mia-refined-home #main #included .mia-included-footer .mh-primary { width: 100%; max-width: none; }
body.mia-refined-home #main #included .mia-included-footer .mia-included-more { margin: 0; text-align: center; }

/* Keep magenta visible in the shorter, wrapped mobile hero headline. */
@media (max-width: 700px) {
  body.mia-refined-home #main #top h1 > em {
    --mia-brand-title-gradient: linear-gradient(90deg, #44dfff 0%, #14dcff 20%, #489bff 42%, #a777e8 60%, #ff12a4 78%, #ff12a4 100%);
  }
}
