/* =========================================================
   METIS ACADEMIA · HOME
   - Desktop: normal hero + Lexicon / Atlas kartları
   - Mobile: plain background + code-style message
   ========================================================= */

/* ---------- Shell ---------- */

.ma-app--home.page-home-main {
  flex: 1 1 auto;
  min-height: calc(100vh - var(--ma-topbar-h));
  display: flex;
  flex-direction: column;
}

/* =========================================================
   DESKTOP HERO (>= 960px)
   ========================================================= */

.ma-home-desktop {
  padding: 40px var(--ma-gutter-x, 22px) 48px;
  max-width: 1120px;
  margin: 0 auto;
}

.ma-home-desktop-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ma-home-hero {
  max-width: 620px;
}

.ma-home-kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ma-muted, #6b7280);
  margin-bottom: 8px;
}

.ma-home-title {
  margin: 0 0 10px;
  font-family: var(--ma-font-serif, "Spectral", serif);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: #111827;
}

.ma-home-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.ma-home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ma-home-card {
  border-radius: var(--ma-radius, 18px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--ma-shadow, 0 26px 70px rgba(0,0,0,.06));
  padding: 16px 18px 18px;
}

.ma-home-card-title {
  margin: 0 0 6px;
  font-family: var(--ma-font-serif, "Spectral", serif);
  font-size: 18px;
}

.ma-home-card-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.ma-home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,.40);
  color: var(--ma-accent, #0f766e);
  background: rgba(15,118,110,.06);
}

.ma-home-card-link:hover {
  background: rgba(15,118,110,.10);
}

/* =========================================================
   MOBILE GATE (<= 959px)
   ========================================================= */

.ma-mobile-gate {
  display: none;
}

@media (max-width: 959.98px) {

  .ma-home-desktop { display: none; }

  .ma-mobile-gate {
    display: block;
    padding: 32px var(--ma-gutter-x, 22px) 40px;
  }

  .ma-mobile-gate-inner {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;          /* +2px overall text bump */
  }

  /* HEADER COMPLETELY HIDDEN */
  .page-template-page-home .ma-topbar {
    display: none !important;
  }

  /* MOBILE LOGO */
  .page-template-page-home .ma-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .page-template-page-home .ma-mobile-logo-img {
    width: 72px;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  }

  /* BRAND */
  .ma-mobile-gate-brand {
    text-align: center;
    margin-bottom: 26px;
  }

  .ma-mobile-title {
    margin-top: 10px;
    font-family: var(--ma-font-serif, "Spectral", serif);
    font-size: 20px;          /* default 18 → +2px */
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #111827;
  }

  .ma-mobile-subtitle {
    margin-top: 4px;
    font-size: 13px;          /* default 11 → +2px */
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b7280;
  }

  /* CODE BLOCK */
  .ma-mobile-gate-code {
    position: relative;
    margin: 0;
    padding: 10px 8px 10px 26px;
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;          /* default 11 → +2px */
    line-height: 1.7;
    white-space: pre-wrap;
    background: transparent;
    color: #111827;
  }

  /* Left rail */
  .ma-mobile-gate-code::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
      to bottom,
      rgba(15,118,110,.7),
      rgba(56,189,248,.6)
    );
  }

  /* Syntax colors */
  .ma-mobile-gate-code .c-comment { color: #464C52; }
  .ma-mobile-gate-code .c-tag { color: #2563eb; }
  .ma-mobile-gate-code .c-attr { color: #059669; }
  .ma-mobile-gate-code .c-string { color: #dc2626; }
  .ma-mobile-gate-code .c-punc { color: #4b5563; }
  .ma-mobile-gate-code .c-fn { color: #7c3aed; }
  .ma-mobile-gate-code .c-paren { color: #111827; }
}

/* Small phones */
@media (max-width: 480px) {
  .ma-mobile-gate {
    padding-top: 26px;
  }
  .ma-mobile-title {
    font-size: 19px;  /* +2px still preserved */
  }
  .ma-mobile-gate-code {
    font-size: 12px;  /* small phone comfort */
  }
}